Revision: 4641
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4641&view=rev
Author: mdboom
Date: 2007-12-06 05:37:29 -0800 (Thu, 06 Dec 2007)
Log Message:
-----------
Fix backward-compatibility breakage of apply_aspect.
Modified Paths:
--------------
branches/transforms/lib/matplotlib/axes.py
Modified: branches/transforms/lib/matplotlib/axes.py
===================================================================
--- branches/transforms/lib/matplotlib/axes.py 2007-12-06 12:48:16 UTC (rev
4640)
+++ branches/transforms/lib/matplotlib/axes.py 2007-12-06 13:37:29 UTC (rev
4641)
@@ -909,11 +909,14 @@
ysize = max(math.fabs(ymax-ymin), 1e-30)
return ysize/xsize
- def apply_aspect(self, position):
+ def apply_aspect(self, position=None):
'''
Use self._aspect and self._adjustable to modify the
axes box or the view limits.
'''
+ if position is None:
+ position = self.get_position(True)
+
aspect = self.get_aspect()
if aspect == 'auto':
self.set_position( position , 'active')
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins