Revision: 7638
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7638&view=rev
Author: astraw
Date: 2009-09-05 23:20:45 +0000 (Sat, 05 Sep 2009)
Log Message:
-----------
spines: fix 'axes' position bug (closes SF#2852168)
Thanks to Jason Grout for reporting this.
Modified Paths:
--------------
branches/v0_99_maint/lib/matplotlib/spines.py
Modified: branches/v0_99_maint/lib/matplotlib/spines.py
===================================================================
--- branches/v0_99_maint/lib/matplotlib/spines.py 2009-09-05 18:55:08 UTC
(rev 7637)
+++ branches/v0_99_maint/lib/matplotlib/spines.py 2009-09-05 23:20:45 UTC
(rev 7638)
@@ -171,10 +171,14 @@
elif position_type=='axes':
if self.spine_type in ('left','right'):
self._spine_transform = ('pre',
-
mtransforms.Affine2D().translate(amount, 0.0))
+ mtransforms.Affine2D.from_values(
+ # keep y unchanged, fix x at amount
+ 0,0,0,1,amount,0))
elif self.spine_type in ('bottom','top'):
self._spine_transform = ('pre',
- mtransforms.Affine2D().translate(0.0,
amount))
+ mtransforms.Affine2D.from_values(
+ # keep x unchanged, fix y at amount
+ 1,0,0,0,0,amount))
else:
warnings.warn('unknown spine type "%s": no spine '
'offset performed'%self.spine_type)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins