Dear Goyo,

Thanks for your information. I finally change them into pdf but not used
yet.
Otherwise I will try png format.

cheers,

Chao

On Wed, Mar 13, 2013 at 6:54 PM, Goyo <goyod...@gmail.com> wrote:

> 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
>



-- 
***********************************************************************************
Chao YUE
Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL)
UMR 1572 CEA-CNRS-UVSQ
Batiment 712 - Pe 119
91191 GIF Sur YVETTE Cedex
Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16
************************************************************************************
------------------------------------------------------------------------------
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

Reply via email to