2013/3/11 Chao YUE <chaoyue...@gmail.com>: > Dear all, > > I searched the internet but still get confused by how can I save a figure > with high dpi value to jpeg format. > > I am using matplotlib 1.2.0 with ubuntu system. > In [14]: mat.__version__ > Out[14]: '1.2.0' > > I tried both setting the flag "savefig.dpi" flag in matplotlibrc as 300, > and use fig.savefig('temp.jpg',dpi=300) when saving the figure. > But when I checked the figure dpi with GIMP, it says 72.
I can replicate this, but saving as png I get the correct dpi. I don't know if this is a bug or a limitation of the jpg format. Anyway, the jpg and png images are made of the same number of pixels hence the dpi should not be an issue provided you can scale the image in your publishing software. And the png format will do better in many cases. Goyo ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users