I believe this is the intended behavior of the notebook backend, where open figures on the page behave like open figures in windows when using a GUI. If you want a new figure, you can open a new one:
import matplotlib.pyplot as plt
fig = plt.figure()
...
Or you can close the existing figure when you are done with it:
plt.close(plt.gcf()) # or fig if you had a handle on it already
at which point new plot calls will open a new figure.
-Min RK
`%matplotlib notebook` magic can plot on previous plot when plotting from pandas in jupyter notebooks. I'm not sure if this is an issue with pandas, matplotlib or jupyter?
--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/79c85846-cb2e-4dee-a4fb-2f55e4c83a00%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
The problem is that figures are separated when plotting pd.DataFrame and figures are added to previous plot when plotting pd.Series.