Gnuplot and Python on Windows

Bernhard Reiter breiter at usf.Uni-Osnabrueck.DE
Thu Oct 5 09:41:34 EDT 2000


In article <39DA44F4.B4AFCDAE at wag.caltech.edu>,
	Richard Muller <rpm at wag.caltech.edu> writes:
> I'm having a hard time getting the Gnuplot-1.4 module to work in the
> Windows version of Python 1.5.2. I've installed the win32all module, as
> well as pgnuplot.exe. I'm still seeing the following error message:
> 
> Please press return to continue...
> Please press return to continue...
> gnuplot> set title "A simple example"
> gnuplot> set data style linespoints
> gnuplot> plot 'c:\windows\TEMP\~-1563933-1' notitle
> gnuplot> reset
> gnuplot> set title "Data can be computed by python or gnuplot"
> gnuplot> set xlabel "x"
> gnuplot> set ylabel "x squared"
> gnuplot> plot x**2 title "calculated by gnuplot",
> 'c:\windows\TEMP\~-1563933-2' title "calculated by python" with points 3
> 3
> Traceback (innermost last):
>   File "demo.py", line 129, in ?
>     demo()
>   File "demo.py", line 80, in demo
>     g.ylabel('x^2') # take advantage of enhanced postscript mode
>   File "__init__.py", line 1273, in ylabel
>     self.set_string('ylabel', s)
>   File "__init__.py", line 1263, in set_string
>     self('set %s "%s"' % (option, s))
>   File "__init__.py", line 1095, in __call__
>     self.gnuplot(s)
>   File "gp_win32.py", line 100, in __call__
>     self.write(s + '\n')
> IOError: [Errno 32] Broken pipe
> 
> I never see a plot.
> 
> Can anyone offer any helpful suggestions on how I should proceed to get
> this to work? Thanks in advance.

No idea, but you might ask on the gnuplot newsgroup.
comp.graphics.apps.gnuplot
	Bernhard

-- 
Professional Service around Free Software                (intevation.net)  
The FreeGIS Project				            (freegis.org)
Association for a Free Informational Infrastructure            (ffii.org)



More information about the Python-list mailing list