[SciPy-user] Problems using Gplt
Adam C. Finnefrock
finnefro at sas.upenn.edu
Fri Aug 2 22:06:28 EDT 2002
Asfandyar Khan <asfandyar_k at yahoo.com> writes:
> Hi,
> I am running Scipy on :
>
> Platform information: Redhat Linux 7.0 (posix
> linux2)
> Python version: 2.2
> Python Numeric version: 20.2.1
>
> Whenever i try to plot using gplt eg,
>
> from gui_thread import *
> from scipy import gplt
> from Numeric import *
>
> a=array([1,2,3])
> b=array([4,5,6])
> plot(a.b)
>
> I get the following error:
>
> IOError: [Errno 32] Broken Pipe
>
> Traceback shows:
> gplt/interface.py line 106 in plot
> gplt/pyPlot.py line 132 in plot
> gplt/pyPlot.py line 702 in _init_plot
> gplt/pyPlot.py line 820 in _send
>
> Regards,
> Asfandyar.
I think you mean
>>> gplt.plot(a,b)
Also, the gui_thread is unnecessary for gplt (but very important for plt).
Your example works for me. (Redhat 7.3, Python 2.2.1, Numeric 21.0).
Are you sure that you have gnuplot installed, working, and in your path?
Adam
More information about the SciPy-User
mailing list