Strange. This example works for me on Win2K with Python 2.4.

Kent

[EMAIL PROTECTED] wrote:
Hi

Hoping that someone can help me here. I have been reading about gnuplot and
it's plotting functionality, so i decided to install this: I downloaded the
gnuplot windows function and then installed the gnuplot.py file using the
setut.py and install command all worked. I also installed the numeric python.

I start by a simple example below and then I get stuck...


import Gnuplot, Gnuplot.funcutils
from Numeric import *
g = Gnuplot.Gnuplot()
g.plot([[0,1.1], [1,5.8], [2,3.3], [3,4.2]])



Traceback (most recent call last): File "<pyshell#3>", line 1, in -toplevel- g.plot([[0,1.1], [1,5.8], [2,3.3], [3,4.2]]) File "C:\Python23\Lib\site-packages\Gnuplot\_Gnuplot.py", line 274, in plot self.refresh() File "C:\Python23\Lib\site-packages\Gnuplot\_Gnuplot.py", line 215, in refresh self(self.plotcmd + ' ' + string.join(plotcmds, ', ')) File "C:\Python23\Lib\site-packages\Gnuplot\_Gnuplot.py", line 199, in __call__ self.gnuplot(s) File "C:\Python23\Lib\site-packages\Gnuplot\gp_win32.py", line 125, in __call__ self.write(s + '\n') IOError: [Errno 22] Invalid argument

Has someone experienced the same issue above if so did you manage to overcome
it?

Much appreciated if someone can help solve this issue for me.

Thanks

Ray

_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor


_______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor

Reply via email to