In one of the cells in my notebook, I already plotted something with
myplot = plt.figure()
plt.plot(x,y)
Now, in a different cell, I'd like to plot the exact same figure again, but add new plots on top of it (similar to what happens with two consecutive calls to plt.plot()). What I tried was adding the following in the new cell:
myplot
plt.plot(xnew,ynew)
However, the only thing I get in the new cell is the new plot, without the former one.
How can one achieve this?