I am trying to show some plots using plt.show (). i get the plots shown on the IPython console, but I need to see each figure in a new window. What can I do ?
In your notebook, try
import matplotlib.pyplot as plt
%matplotlib
Called alone like this, it should give output in a separate window. There are also several options to %matplotlib depending on your system. To see all options available to you, use
%matplotlib -l
Calling
%matplotlib inline
will draw the plots in the notebook again.
You want to type %matplotlib qt
into your iPython console. This changes it for the session you're in only. To change it for the future, go Tools > Preferences
, select iPython Console > Graphics
, then set Graphics Backend
to Qt4
or Qt5
. This ought to work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With