From: Matt N. <new...@ca...> - 2005-03-07 20:53:28
|
> > I dont think it is a bitmap, but I will let someone more > > knowledgable speak to that. > > Can anyone confirm or deny this? It seems to me that it is > saving out in a rasterized version encapsulated in the > postscript format. I tried saving a simple plot in both PNG > and PS format - the PNG is 77 kb and the PS is 623 kb. The > plot only has 3 curves and a legend so I'm guessing its being > rasterized in the PS format. > > I guess my real question is: is it possible to save a > matplotlib plot in a vector-based format? It does not save a bitmap of the image to a postscript file, but normal postscript commands. The eps file is relatively large (at least compared to png) because it includes a large but fixed amount of font data. Try adding another line to your plot or otherwise changing the contents of the plot, and you'll see size of the eps file change. Cheers, --Matt |