|
From: Michael H. <hag...@jp...> - 2002-09-26 16:56:50
|
Lothar,
[I have cc'ed this email to the gnuplot-py-users mailing list. Please
subscribe to that list if you are interested in following Gnuplot.py
developments:
http://lists.sourceforge.net/lists/listinfo/gnuplot-py-users
.]
Lothar Birk <bi...@en...> writes:
> Dear Michael,
>
> first of all, thank your for your great tool which is very useful to
> me creating plots on the fly for my lectures and papers.
>
> I recently had to move to an Win2k PC :-( and try to get some of my
> Python scripts running there,
> In all my scripts using Gnuplot I run into the following error message.
>
> Traceback (most recent call last):
> File "C:\Home\birk\src\pyprop\b-series\TESTBS~1.PY", line 46, in ?
> PDlist=[0.5,0.6,0.8,1.0,1.2,1.4])
> File "C:\Home\birk\src\pyprop\b-series\propseries.py", line 269, in
> plotKTKQ
> g.additem('set xrange [%f:%f]' % (Jmin,Jmax))
> File "C:\Home\birk\src\pyprop\b-series\IncrGnuplot.py", line 173, in
> additem
> self.__call__(plotitem)
> File "C:\program
> files\python22\Lib\site-packages\Gnuplot\_Gnuplot.py", line 206, in __call__
> self.gnuplot(s)
> File "C:\PROGRA~1\python22\lib\site-packages\Gnuplot\gp_win32.py",
> line 121, in __call__
> self.write(s + '\n')
> IOError: [Errno 22] Invalid argument
>
> The weird thing is that it does not happen at the same place in the
> script at different runs from a command terminal. May be this error
> is not a Gnuplot.py issue at all, but related to system or python
> installation. I hope, however, you can provide me with hints where to look.
>
> I have python-2.2.1, gnuplot-py-1.6.1, Numeric-21.3 and a lot of
> other stuff which runs as far as I know.
>
> Best regards
> Lothar
I don't think there's ever been a version 1.6.1 of Gnuplot.py
released. Are you using 1.6 or a more recent CVS version or ...?
It looks like you are using a home-cooked extension to Gnuplot.py, so
I could only guess what your problem might be. Possibly the argument
that you are passing to gnuplot.__call__ is not a sensible string as
it should be.
If you send us more information we might be able to help you.
Michael
--
Michael Haggerty
hag...@jp...
|