figure size changes when calling


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

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


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 $ (446 Bytes) (2.92 KB)