From: alain d. <ala...@gm...> - 2010-03-03 17:06:12
|
Hi I try to run Gnuplot in Python under windows with IDLE or through a command line. I'm running Python version. 2.6.4. import Gnuplot, Gnuplot.funcutils from numpy import * g = Gnuplot.Gnuplot(debug=1) gnuplot> set terminal windows g.title('A simple example') Traceback (most recent call last): File "<pyshell#4>", line 1, in <module> g.title('A simple example') File "C:\Python26\lib\site-packages\Gnuplot\_Gnuplot.py", line 473, in title self.set_label('title', s, offset=offset, font=font) File "C:\Python26\lib\site-packages\Gnuplot\_Gnuplot.py", line 410, in set_label self(string.join(cmd)) File "C:\Python26\lib\site-packages\Gnuplot\_Gnuplot.py", line 210, in __call__ self.gnuplot(s) File "C:\Python26\lib\site-packages\Gnuplot\gp_win32.py", line 130, in __call__ self.write(s + '\n') IOError: [Errno 22] Invalid argument Can you give me some advice about the way to solve that problem? Best Regards -- Alain Dimier (33) 4 26 64 86 91 |