[SciPy-user] Missing 'plt'

Ryan Krauss ryanlists at gmail.com
Mon Feb 27 08:29:29 CST 2006

The documentation may not reflect this yet, but scipy recommends 2D
plotting be handled by matplotlib:

and instead of dealing with gui_thread directly, use the ipython shell
which has lots of other nice features:
launch ipython with the -pylab flag and it will handle all of your
threading needs.  In windows that most likely means looking at the
properties of the desktop short cut and adding -pylab to the end of
the part that actually launches ipython.  In linux that means typing
ipython -pylab at the command prompt.


On 2/27/06, Alec Edgington <alec at obtext.com> wrote:
> Hi,
> I'm hoping someone can help me get started with plotting using 'plt' in
> scipy. Aplogogies in advance for being an idiot.
> I'm running on up-to-date Windows XP; I've downloaded and installed
> python-2.4.2, numpy-0.9.5, wxPython-2.6 and scipy-0.4.6.
> But the 'plt' sub-package just doesn't seem to be there. Nor does
> gui_thread. So when I start up IDLE and try to follow the instructions in
> http://sg0.chem.upenn.edu/adam/howto/scipy/mini-plt.shtml, all that happens
> is:
> >>> import gui_thread
> Traceback (most recent call last):
>   File "<pyshell#0>", line 1, in -toplevel-
>     import gui_thread
> ImportError: No module named gui_thread
> >>> from scipy import *
> >>> from scipy import plt
> Traceback (most recent call last):
>   File "<pyshell#2>", line 1, in -toplevel-
>     from scipy import plt
> ImportError: cannot import name plt
> >>>
> I checked in C:\Python24\Lib\site-packages\scipy and found no folder called
> 'plt'.
> What am I doing wrong?
> Many thanks,
> Alec
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-user

More information about the SciPy-user mailing list