figuresize and dpi

Hi all,

I define the figure size as fig = plt.figure(figsize=(7,0.75*7)), then
plot the figure and save it as both a png and an eps.

If I then measure the size of the figure as displayed (displayed with
0 zoom) on the computer screen with a ruler, it does not measure 7 in.
Why is it so? Am I doing something wrong.

The reason for the post is that I would like to put a figure which
would measure 7 in. wide in a publication. I want a faithful
reproduction of how the image would look at 7 in. so that I can use
the same settings for all the other figures. But I am always getting a
size that is less that 7 in. So, when I put it in the publication at 7
in. all the fonts would be enlarged and I do not want this to happen.

Cheers,
Chaitanya

http://matplotlib.sourceforge.net/api/api_changes.html#dpi
(Perhaps the last sentence of the first paragraph helps.)

Alan Isaac

ยทยทยท

On 5/12/2009 9:57 AM Chaitanya Krishna apparently wrote:

I define the figure size as fig = plt.figure(figsize=(7,0.75*7)), then
plot the figure and save it as both a png and an eps.
If I then measure the size of the figure as displayed (displayed with
0 zoom) on the computer screen with a ruler, it does not measure 7 in.
Why is it so? Am I doing something wrong.