Picture window will not appear after show () is released

I recently upgraded ipython and pandas to the latest stable versions. This led to some odd behavior in matplotlib where I cannot get the numbers to appear if I run (previously running) scripts from the terminal. And if I am in ipton qtconsole, I can not get the graph to appear even when the show () command is issued. If this is not the case, I issue the figure (1) command after issuing the plot command (see the Nested Code below). My python environment is the newest (I think) installation of Enthought.

Here is the ipython session code / process. No shape appears until the very last line appears, which looks wrong.

In[1]: figure() Out[1]: <matplotlib.figure.Figure at 0x2f05910> In[2]: show() In[3]: plot(arange(10)) Out[3]: [<matplotlib.lines.Line2D at 0x3196b90>] In[4]: show() In[5]: draw() In[6]: figure() Out[6]: <matplotlib.figure.Figure at 0x31a6210> In[7]: figure(1) Out[7]: 
+4
source share
2 answers

This seems like a problem with the backend you are using. If you run ipython with the ipython option, you do not need to call show() or draw() . Try using a different backend (if you installed them). Some examples:

 ipython --pylab=tk ipython --pylab=qt ipython --pylab=wx ipython --pylab=gtk ipython --pylab=osx 

I suspect that EPD can only have tk backend, but I could be wrong.

+4
source

I started the ipython laptop at the command line with the following command:

 C:\..\cur_dir> ipython notebook --pylab=inline 

Then I tried:

 plot(arange(10)) 

and display image.

+1
source

All Articles