From: <lee...@us...> - 2009-04-30 17:05:28
|
Revision: 7074 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7074&view=rev Author: leejjoon Date: 2009-04-30 17:05:27 +0000 (Thu, 30 Apr 2009) Log Message: ----------- Incorrect eps bbox for landscape mode fixed Modified Paths: -------------- trunk/matplotlib/CHANGELOG trunk/matplotlib/lib/matplotlib/backends/backend_ps.py Modified: trunk/matplotlib/CHANGELOG =================================================================== --- trunk/matplotlib/CHANGELOG 2009-04-30 13:28:54 UTC (rev 7073) +++ trunk/matplotlib/CHANGELOG 2009-04-30 17:05:27 UTC (rev 7074) @@ -1,5 +1,7 @@ ====================================================================== +2009-04-30 Incorrect eps bbox for landscape mode fixed - JJL + 2009-04-28 Fixed incorrect bbox of eps output when usetex=True. - JJL 2009-04-24 Changed use of os.open* to instead use subprocess.Popen. Modified: trunk/matplotlib/lib/matplotlib/backends/backend_ps.py =================================================================== --- trunk/matplotlib/lib/matplotlib/backends/backend_ps.py 2009-04-30 13:28:54 UTC (rev 7073) +++ trunk/matplotlib/lib/matplotlib/backends/backend_ps.py 2009-04-30 17:05:27 UTC (rev 7074) @@ -1100,8 +1100,10 @@ # set the paper size to the figure size if isEPSF. The # resulting ps file has the given size with correct bounding # box so that there is no need to call 'pstoeps' - if isEPSF: + if isEPSF: paperWidth, paperHeight = self.figure.get_size_inches() + if isLandscape: + paperWidth, paperHeight = paperHeight, paperWidth else: temp_papertype = _get_papertype(width, height) if papertype=='auto': This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |