[SciPy-user] Problem with plt on debian sid box

Pearu Peterson pearu at cens.ioc.ee
Tue Nov 19 15:26:51 EST 2002


On Tue, 19 Nov 2002, Douglas Eck wrote:

> I am running a debian sid box.
> 
> I downloaded from CVS today and did a build and generated no
> errors, but plt doesn't work.
> 
>  >>> from scipy import plt
>  >>> plt.plot([1,2,3,4,5])
> <C wxFrame instance at _8988178_wxFrame_p>
> 
> It imports without error and even gives me a wxFrame object. But
> nothing ever appears on the screen. It doesn't seem to be a window
> manager permissions problem. I can quit python and run a windowed program.

You need to import gui_thread before importing scipy.plt:

>>> import gui_thread
>>> <Importing wxPython... import gui_thread done.>
>>> from scipy import plt
>>> plt.plot([1,2,3,4,5])
<C wxFrame instance at _85e57f8_wxFrame_p>
>>> 

> A more broad question. Is anyone using plt, or doing upkeep
> on it? If not, I'll just bag it and use wxPlotCanvas directly.

I am not sure. But chaco will probably replace plt,gplt,xplt modules in
future.

Pearu





More information about the SciPy-User mailing list