Relative Content

Tag Archive for pythonmatplotlibsubplot

Add subplots to another subplots

I’m working on a project where I need to display multiple sets of data in subplots. In this code, I’m plotting various data from different graphs on the same graph using the variable ax (it’s called like this in each of the functions I call: ax.plot(data.loc[date_plt, [var1]], label=label)). Here’s what I get with my code and what I’d like to achieve. Does anyone have any ideas?

fig.add_axes() Subplot normalized coordinates do not match

I want to have a master plot, and various subplots that will be plotted at specific locations on the master plot coordinate system. The y coordinates should be matching and the x of the subplots is local to each.
So far I have the following code, but the subplot y coordinates do not match the y coordinate of the master plot.