change in dpi changes the figure size

Hello,

As mentioned in the site(http://matplotlib.sourceforge.net/matplotlib.pylab.html#-savefig) dpi is the resolution in dots per inch.

When we change dpi the size of the figure gets changed. But we want the resolution to be changed and not the figure size.

Can anyone give more information on ‘dpi’ parameter.

Thanks in advance

Best Regards,

Rameshwari

Vedpathak, Rameshwari IN BLR SISL wrote:

Hello,
As mentioned in the
site(http://matplotlib.sourceforge.net/matplotlib.pylab.html#-savefig)
dpi is the resolution in dots per inch.
When we change dpi the size of the figure gets changed. But we want the
resolution to be changed and not the figure size.
Can anyone give more information on 'dpi' parameter.

READ THIS MAILING LIST! AND THE WIKI!

There was just a discussion about this on this list last week, which resulted in this post to the Wiki:

http://www.scipy.org/wikis/topical_software/AdjustingImageSize

Please feel free to improve that Wiki page, or if something is unclear, or doesn't work, post a question here about it.

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer
                                         
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@...259...