hrh1818
unread,Oct 23, 2009, 11:18:33 PM10/23/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to scitools
So far I have not been able to use scitools to plot a curve. The
following sequence shows the plotting commands I use and the error I
get.
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
D:\Documents and Settings\Howard>cd \
D:\>python
Python 2.6.3 (r263rc1:75186, Oct 2 2009, 20:40:30) [MSC v.1500 32 bit
(Intel)]
on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from scitools.std import *
scitools.easyviz backend is gnuplot
>>> def f(t):
... return t**2*exp(-t**2)
...
>>> t = linspace(0, 3, 51)
>>> y = f(t)
>>> plot(t, y)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "D:\python26\lib\site-packages\scitools\easyviz\common.py",
line 3061, in
plot
self._replot()
File "D:\python26\lib\site-packages\scitools\easyviz\gnuplot_.py",
line 1097,
in _replot
self._g.reset()
File "D:\python26\lib\site-packages\Gnuplot\_Gnuplot.py", line 366,
in reset
self('reset')
File "D:\python26\lib\site-packages\Gnuplot\_Gnuplot.py", line 210,
in __call_
_
self.gnuplot(s)
File "D:\python26\lib\site-packages\Gnuplot\gp_win32.py", line 130,
in __call_
_
self.write(s + '\n')
IOError: [Errno 22] Invalid argument
>>>
I am using:
python-2.6.3
numpy-1.3.0-win32*python2.6
scipy-0.7.1-win32*python2.6
scitoos-0.6.win32
gnuplot version 4.2.6
gnuplot.py-1.8
Windows XP
I have also tried using the exact same plotting commands with the 2.5
versions of python, numpy and scipy and Windows 7 and get the same
[Errno 22] Invalid argument error. Hence it appears the most likely
source of the bug in the code is the scitools module.
What should I do to fix this Error 22 problem?
Howard