[Tutor] GNUPLOT

Danny Yoo dyoo at hkn.eecs.berkeley.edu
Thu Apr 21 21:38:20 CEST 2005



[Kent]
> Strange. This example works for me on Win2K with Python 2.4.


[Ray]
> > 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.

[some error text cut]

> > 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?

Hi Ray,

Yeah, it looks like Joshua Pollack ran into this issue three years ago:

    http://mail.python.org/pipermail/tutor/2002-September/017579.html

I'm going through the archive now to see if he was able to resolve the
problem ok.

You might also want to bring this up on the gnuplot-py-users mailing list:
I'm sure that they'd definitely know what was going on:

    http://lists.sourceforge.net/lists/listinfo/gnuplot-py-users

In the meantime, I'll continue to do some hunting in the mail archive.
*grin*

Good luck to you!



More information about the Tutor mailing list