I've read the answers related to this already and have followed this:
fig = plt.figure()
fig.add_subplot(221) #top left
fig.add_subplot(222) #top right
fig.add_subplot(223) #bottom left
fig.add_subplot(224) #bottom right
plt.show()
Which is great, now I have a figure with four empty subplots.
What I can't figure out is how to set the #top left
subplot to show my plot x
where x is a matplotlib.axes.AxesSubplot
that I've already generated.
My code in total is:
plt1 = plot.scatter(foo,bar)
plt2 = plot.line(bar, baz)
plt3 = plot.scatter(you, get)
plt4 = plot.line(the, picture)
fig = plt.figure()
fig.add_subplot(221) #top left
fig.add_subplot(222) #top right
fig.add_subplot(223) #bottom left
fig.add_subplot(224) #bottom right
# Here is where I got lost
# I want figure subplot 221 to show plt1 etc...