Skip to content Skip to sidebar Skip to footer

Creating A Subplot Below A Plot With An Inset Graph In Python

I currently have the graph attached. I want a separate graph underneath this one showing the difference between the two lines to visually show the functional approach to error anal

Solution 1:

Your idea is correct, but you need to add a new subplot before calling for plt.show(). This is because after that call, the instance of the figure is killed after you close it.

In general, you may want to call directly the method add_subplot() of your figure instance (in your case fig.add_subplot()) because then you make sure it's added to the desired object.


Post a Comment for "Creating A Subplot Below A Plot With An Inset Graph In Python"