I've recently switched from Enthought Canopy to Anaconda and am using the Spyder IDE. I've noticed that when I plot some data,
import matplotlib.pyplot as plt
plt.figure()
plt.plot(rigs2)
plt.ion()
plt.show()
It shows up as an inline figure in the IPython console:
However, in Enthought it used to be that the plot would show up in a separate window with zoom, back, and forward buttons. Is there any way to achieve the same in Spyder?
You might not need to restart spyder. Just go to the tool menu and restart the kernel. Then you should have the plot displayed. Please, this is after you must have set the appropriate preferences for graphics
And remember to restart the kernel and there it goes.
Select from the menu
Tools > Preferences
, thenIPython console
in the list of categories on the left, then the tabGraphics
at the top, and change theGraphics backend
from Inline to e.g. Qt.For me though, the figures then always pop up in the background.
(I use Spyder 3.0.0dev bundled with WinPython 3.4.)
Even though it's an old question, my solution to the same issue without using the GUI.
Plot only in console:
Going back to plot outside console:
There was no need to restart my
spyder
or kernal. Session info: