[SciPy-user] Problem with plt.plot()

Pearu Peterson pearu at scipy.org
Wed Dec 10 07:56:46 CST 2003



On Wed, 10 Dec 2003, Boris Breidenbach wrote:

> Hello!
> 
> I am new to scipy. I tried the example given in the plotting tutorial (http://www.scipy.org/site_content/tutorials/plot_tutorial, section "Starting plt").
> First, I imported gui_thread. But I did not get any message of the kind "<wxPython imported>". But I did not get any error message either. 
> Then I did:
> >>> from scipy import plt
> and
> >>> plt.plot((1,2,3))
> After that I get a message like
> <scipy.plt.wxplt.plot_frame instance; proxy of C++ wxFrame instance at _8259b50_wxFrame_p>
> but no window appears. Any idea why?
> On ending python, a window seems to pop up, just for a split second. It is not displayed long enough to recognize any content.
> 
> Did anyone experience similar problems? Any suggestions what might be wrong?

Try:

>>> from gui_thread import wxPython_thread
>>> wxPython_thread()
>>> from scipy import plt
>>> plt.plot((1,2,3))

The plotting tutorial needs to be updated...

Pearu



More information about the SciPy-user mailing list