I have a couple plots made by different programs in a way that I can't easily combine them. I have them saved as pickle files as described in this post: Store and reload matplotlib.pyplot object. Now I am trying to reload multiple plots into my program and using subplots to plot them together.
I've tried:
ax1 = pkl.load(open("plot1.pkl", "rb"))
ax2 = pkl.load(open("plot2.pkl", "rb"))
fig, axs = plt.subplots(2, 1, sharey=True)
axs[0][0] = ax1
axs[0][1] = ax2
plt.show()
However when the plots are displayed I get three plots: The two original plot and a blank subplot. What should I do to get the two plots in ax1 and ax2 to display in the subplot object?
Thank you!