figure size changes when calling pylab.show

Hi,

i have found a strange behaviour of the figure size. At least for some cases it looks like the figure size is changed by a small amount after calling pylab.show.

The attached script saves the same figure before and after calling savefig. The figure saved after the call to show is a different in number of pixels.

Here comes a printout from running the script in ipython:

In [1]: %run figsize_truncation.py
desired figsize: (3.1496062992125986, 3.1496062992125986)
actual figsize: [ 3.1496063 3.1496063]
desired figsize: (3.1496062992125986, 3.1496062992125986)
actual figsize: [ 3.2875 3.2875]

As you can see on the last line the last figure becomes something else.

/J�rgen

Versions I use:

python version = 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310 32 bit (Intel)]
numpy __version__ = 1.0.5.dev2304
scipy __version__ = 0.7.0.dev3422
ipython __version__ = 0.8.3.svn.r3001 __revision__ = 3001
matplotlib __version__ = 0.98pre __revision__ = $Revision: 4894 $

figsize_truncation.py (446 Bytes)

figsize_truncation.py (2.92 KB)