From: Lothar B. <bi...@en...> - 2002-09-26 17:30:40
|
Hello Micheal, thanks for the quick answer and pointing me to the gnuplot-py-user list. I somehow failed to notice there is one. Michael Haggerty wrote: > 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 ...? OK it is the plain 1.6 distribution. I got confused by the numbering of the rpms on sourceforge (1.6-1) > > 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. > Yes it is a crooked extension, which maintains a list of all gnuplot commands and allows you to build up a plot command by adding more and more curves which finally get plotted into one diagrams. However the error also occurs when I try to run the Gnuplot.py demo: C:\Program Files\python22\Lib\site-packages\Gnuplot>python demo.py gnuplot> set title "A simple example" gnuplot> set data style linespoints gnuplot> plot 'C:\DOCUME~1\birk\LOCALS~1\Temp\~1200-0' notitle Please press return to continue... Traceback (most recent call last): File "demo.py", line 121, in ? demo() File "demo.py", line 47, in demo g.reset() File "C:\program files\python22\Lib\site-packages\Gnuplot\_Gnuplot.py", line 3 62, in reset self('reset') File "C:\program files\python22\Lib\site-packages\Gnuplot\_Gnuplot.py", line 2 06, in __call__ self.gnuplot(s) File "C:\PROGRA~1\python22\lib\site-packages\Gnuplot\gp_win32.py", line 121, i n __call__ self.write(s + '\n') IOError: [Errno 22] Invalid argument > If you send us more information we might be able to help you. > > Michael > > -- > Michael Haggerty > hag...@jp... > Any help appreciated Lothar -- -- Lothar Birk ------------------------------------------------------- Visiting Professor, Dept. of Naval Architecture and Marine Engineering University of Michigan Phone +1 734 615 8061, Fax +1 734 936 8820, E-mail bi...@um... |