|
From: Humufr <hu...@ya...> - 2006-03-21 14:58:00
|
Hi,
I have an error with the SVN version of matplotlib when I'm trying to
save a figure in eps format (it's working fine for png, svg). The
problem appeared when I'm using savefig("image.eps") or the save icon.
The error message is:
Thanks,
N.
python simple_plot.py
Traceback (most recent call last):
File
"/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_gtk.py",
line 640, in save_figure
self.canvas.print_figure(fname)
File
"/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_gtkagg.py",
line 112, in print_figure
orientation, **kwargs)
File
"/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_agg.py",
line 493, in print_figure
orientation, **kwargs)
File
"/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_ps.py",
line 1141, in print_figure
self.figure.draw(renderer)
File "/usr/local/lib/python2.4/site-packages/matplotlib/figure.py",
line 529, in draw
for a in self.axes: a.draw(renderer)
File "/usr/local/lib/python2.4/site-packages/matplotlib/axes.py", line
1460, in draw
a.draw(renderer)
File "/usr/local/lib/python2.4/site-packages/matplotlib/lines.py",
line 370, in draw
lineFunc(renderer, gc, xt, yt)
File "/usr/local/lib/python2.4/site-packages/matplotlib/lines.py",
line 534, in _draw_solid
renderer.draw_lines(gc, xt, yt, self._transform)
File
"/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_ps.py",
line 634, in draw_lines
codes = where(mask[start:end+1], 'l', 'm')
File "/usr/local/lib/python2.4/site-packages/numarray/generic.py",
line 1068, in where
return choose(ufunc.not_equal(condition, 0), (y,x), out)
File "/usr/local/lib/python2.4/site-packages/numarray/ufunc.py", line
1990, in choose
return _choose(selector, population, outarr, clipmode)
File "/usr/local/lib/python2.4/site-packages/numarray/ufunc.py", line
1896, in __call__
computation_mode, woutarr, cfunc, ufargs = \
File "/usr/local/lib/python2.4/site-packages/numarray/ufunc.py", line
1912, in _setup
convType = _maxPopType(in2)
File "/usr/local/lib/python2.4/site-packages/numarray/ufunc.py", line
1854, in _maxPopType
t = _nc._maxtype(x)
File
"/usr/local/lib/python2.4/site-packages/numarray/numarraycore.py", line
131, in _maxtype
return PyLevel2Type[_numarray._maxtype(args)]
TypeError: Expecting a python numeric type, got something else.
|