[SciPy-dev] Problems using Gplt
Asfandyar Khan
asfandyar_k at yahoo.com
Tue Aug 6 03:21:03 EDT 2002
Hi,
I am running Scipy on :
Platform information: Redhat Linux 7.0 (posix
linux2)
Python version: 2.2
Python Numeric version: 20.2.1
Whenever i try to plot using gplt eg,
from scipy import gplt
from Numeric import *
a=array([1,2,3])
b=array([4,5,6])
plot(a.b)
I get the following error:
IOError: [Errno 32] Broken Pipe
Traceback shows:
gplt/interface.py line 106 in plot
gplt/pyPlot.py line 132 in plot
gplt/pyPlot.py line 702 in _init_plot
gplt/pyPlot.py line 820 in _send
def plot(*data):
_validate_active()
apply(_active.plot,data) <-----
def plot(self,*data):
self._init_plot()
self._plot(data) <-----
def _init_plot(self):
self.m_rmin = BIG
self.m_rmax = SMALL
self._send('reset') <-----
self.grid('on')
self.angles(self.m_angle)
def _send(self,cmd):
if(len(cmd) < 200):
self.g.write(cmd + '\n')
self.g.flush() <-----
else:
filename = tempfile.mktemp()
f = open(filename, 'w')
f.write(cmd + '\n')
f.close();
fn = string.replace(filename,'\\','/')
self.g.write('load "' + fn + '"\n')
self.g.flush()
self.m_tmpfiles.append(filename)
time.sleep(.15)
Regards,
Asfandyar.
__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
More information about the SciPy-Dev
mailing list