From: Darren D. <dd...@co...> - 2005-03-07 16:54:21
|
On Monday 07 March 2005 11:36 am, Eli Glaser wrote: > Darren, > > It was my impression that savefig() only supports jpeg and png format. > > From the docs: > http://matplotlib.sourceforge.net/matplotlib.pylab.html#-savefig > > savefig(*args, **kwargs) > SAVEFIG(fname, dpi=150, facecolor='w', edgecolor='w', > orientation='portrait'): > > Save the current figure to filename fname. dpi is the resolution > in dots per inch. > > Output file types currently supported are jpeg and png and will be > deduced by the extension to fname I agree that is a little misleading, but keep reading: orientation is either 'landscape' or 'portrait' - not supported on all backends; currently only on postscript output. savefig works for ps and eps, I use it all the time without changing backends. > > > Also I guess I'm not clear if saving to PS/EPS format actually creates a > line drawing/ vector image or > just creates a bitmap and encapsulates the bitmap in the PS/EPS format. > I'm looking to > be able to save as a line drawing or vector-type format. I dont think it is a bitmap, but I will let someone more knowledgable speak to that. -- Darren |