I have a jupyter notebook with multiple cells, many of which produce a figure with matplotlib.
In the end of my notebook, I would like to create a figure with multiple subplots which are exact copies of the previous plots, in order to save it into a single file.
What I tried to do (and does not work) is copying the previous axes objects):
fig, newax = plt.subplots(2,1)
newax[0]=prevax0
newax[1]=prevax1
plt.show()
It just shows empty figures, apparently copying axes does not work.