SourceForge logo
SourceForge logo
Menu

[matplotlib-devel] figure size changes when calling pylab.show

From: Jörgen S. <jor...@bo...> - 2008年02月14日 18:07:53
Attachments: figsize_truncation.py
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 $

View entire thread

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /