Gnuplot on Windows

Bengt Richter bokr at oz.net
Thu Nov 21 15:38:06 EST 2002


On Thu, 21 Nov 2002 15:11:32 +0000, "Paul Simmonds" <psimmo60 at hotmail.com> wrote:
[...]
>Python 2.2.2 (#37, Oct 14 2002, 17:02:34) [MSC 32 bit (Intel)] on win32
>Type "help", "copyright", "credits" or "license" for more information.
>>>>import Gnuplot
>>>>a=Gnuplot.Gnuplot()
>>>>a.plot('1.dta') # A simple data file
>Traceback (most recent call last):
>  File "<stdin>", line 1, in ?
>  File "F:\SIMMONDS\python22\Lib\site-packages\Gnuplot\_Gnuplot.py", line 
>281, in plot
>    self.refresh()
>  File "F:\SIMMONDS\python22\Lib\site-packages\Gnuplot\_Gnuplot.py", line 
>222, in refresh
>    self(self.plotcmd + ' ' + string.join(plotcmds, ', '))
>  File "F:\SIMMONDS\python22\Lib\site-packages\Gnuplot\_Gnuplot.py", line 
>206, in __call__
>    self.gnuplot(s)
>  File "F:\SIMMONDS\python22\Lib\site-packages\Gnuplot\gp_win32.py", line 
>122, in __call__
>    self.write(s + '\n')
>IOError: [Errno 22] Invalid argument
>>>># Working through the hierarchy gives me
>>>>a.gnuplot.gnuplot
><open file 'f:\simmonds\gnuplot\pgnuplot.exe', mode 'w' at 0x00792CE8>
                                          ^^^        ^^^
Why would a .exe file be opened with mode 'w'?? Or at all?

Creating or modifying exe's on the fly could be not so nice for your system ;-/

I would want to check that out carefully.
 
>>>>a.gnuplot.gnuplot.write("hello")
>Traceback (most recent call last):
>  File "<stdin>", line 1, in ?
>IOError: [Errno 22] Invalid argument
>
>I had a check through the Gnuplot-py project page, and there was another 
>support request describing the same thing, but no answer was given.
>
>I'd be grateful for any comments.

No experience with Gnuplot, sorry. But that open file caught my eye.
Hope it's a useful clue.

Regards,
Bengt Richter



More information about the Python-list mailing list