Hi,
for some reason I have now (with the new matplotlib) problems with ps files saving figures with savefig.
(it works with gif, jpg, etc).
[I am running Python 2.3.4, IPython 0.6.12, matplotlib 0.82
and verbose.level helpful, interactive is False, platform is linux2, numerix numarray 1.3.0]
So here is what I get with a simple example:
scatter(arange(0,10,1), arange(10,20,1))
savefig('toto.ps')
···
---------------------------------------------------------------------------
exceptions.ImportError Traceback (most recent call last)
/home/science/Sauron/AnalysisKin/Paper7/<console>
/usr/lib/python2.3/site-packages/matplotlib/pylab.py in savefig(*args, **kwargs)
749 def savefig(*args, **kwargs):
750 fig = gcf()
--> 751 return fig.savefig(*args, **kwargs)
752 if Figure.savefig.__doc__ is not None:
753 savefig.__doc__ = Figure.savefig.__doc__
/usr/lib/python2.3/site-packages/matplotlib/figure.py in savefig(self, *args, **kwargs)
616 kwargs[key] = rcParams['savefig.%s'%key]
617
--> 618 self.canvas.print_figure(*args, **kwargs)
619
620
/usr/lib/python2.3/site-packages/matplotlib/backends/backend_gtkagg.py in print_figure(self, filename, dpi, facecolor, edgecolor, orientation)
114 try: agg.print_figure(filename, dpi, facecolor, edgecolor, orientation)
115 except IOError, msg:
--> 116 error_msg_gtk('Failed to save\nError message: %s'%(msg,), self)
117
118 self.figure.set_canvas(self)
/usr/lib/python2.3/site-packages/matplotlib/backends/backend_agg.py in print_figure(self, filename, dpi, facecolor, edgecolor, orientation)
458 svg.print_figure(filename, dpi, facecolor, edgecolor, orientation)
459 elif ext.find('ps')>=0 or ext.find('ep')>=0:
--> 460 from backend_ps import FigureCanvasPS # lazy import
461 ps = self.switch_backends(FigureCanvasPS)
462 ps.print_figure(filename, dpi, facecolor, edgecolor, orientation)
ImportError: cannot import name FigureCanvasPS
ANY HELP welcome!!!
Thanks
Eric