Hello,
I don't use Windows, so I won't be of much help. Therefore, I am
forwarding your question to the gnuplot-users mailing list, where
several windows users are subscribed and might have ideas.
It sounds vaguely like the gnuplot program was never started. One thing
appears incorrect in your attempt:
> I also tried to type:
> Gnuplot.GnuplotOpts.gnuplot_command = "C:\Programmi\gp373w32\pgnuplot"
Because of Python's treatment of backslashes in strings, I think you
want to type either
Gnuplot.GnuplotOpts.gnuplot_command = "C:\\Programmi\\gp373w32\\pgnuplot"
or
Gnuplot.GnuplotOpts.gnuplot_command = r"C:\Programmi\gp373w32\pgnuplot"
Maybe that will help.
Michael
Giorgio Fagiolo wrote:
>Dear Michael: I've just successfully completed the installation of
>Gnuplot.py on a machine running Windows XP Home. I followed all your
>instuctions but something seems not working properly. In particular, I've
>been trying to type the following lines (in the Pythonwin interactive
>window):
>
>
>
>>>>import Gnuplot
>>>>import Gnuplot.funcutils
>>>>g = Gnuplot.Gnuplot(debug=1)
>>>>g.plot([[0,1.1], [1,5.8], [2,3.3], [3,4.2]])
>>>>
>>>>
>
>But then it gives me the following:
>
>Traceback (most recent call last):
> File "<interactive input>", line 1, in ?
> File "c:\python22\Lib\site-packages\Gnuplot\_Gnuplot.py", line 281, in
>plot
> self.refresh()
> File "c:\python22\Lib\site-packages\Gnuplot\_Gnuplot.py", line 222, in
>refresh
> self(self.plotcmd + ' ' + string.join(plotcmds, ', '))
> File "c:\python22\Lib\site-packages\Gnuplot\_Gnuplot.py", line 206, in
>__call__
> self.gnuplot(s)
> File "c:\python22\Lib\site-packages\Gnuplot\gp_win32.py", line 122, in
>__call__
> self.write(s + '\n')
>IOError: [Errno 22] Invalid argument
>
>Just to give you more info: I have Gnuplot.py correctly installed under
>C:\Python22\Lib\site-packages\Gnuplot while GnuPlot (windows version
>including pgnuplot.exe) is installed under C:\Programmi\gp373w32.
>
>I also tried to type:
>Gnuplot.GnuplotOpts.gnuplot_command = "C:\Programmi\gp373w32\pgnuplot"
>but it does not work.
>Could you possibly help me out with this problem? Thanks in advance,
>Giorgio Fagiolo
>
--
Michael Haggerty
mh...@al...
|