Revision: 8043
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8043&view=rev
Author: astraw
Date: 2009-12-21 00:46:30 +0000 (Mon, 21 Dec 2009)
Log Message:
-----------
spines: simplify code
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/spines.py
Modified: trunk/matplotlib/lib/matplotlib/spines.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/spines.py 2009-12-21 00:45:55 UTC (rev
8042)
+++ trunk/matplotlib/lib/matplotlib/spines.py 2009-12-21 00:46:30 UTC (rev
8043)
@@ -250,14 +250,12 @@
if what == 'data':
# special case data based spine locations
+ data_xform = self.axes.transScale + \
+ (how+self.axes.transLimits + self.axes.transAxes)
if self.spine_type in ['left','right']:
- data_xform = self.axes.transScale + \
- (how+self.axes.transLimits + self.axes.transAxes)
result = mtransforms.blended_transform_factory(
data_xform,self.axes.transData)
elif self.spine_type in ['top','bottom']:
- data_xform = self.axes.transScale + \
- (how+self.axes.transLimits + self.axes.transAxes)
result = mtransforms.blended_transform_factory(
self.axes.transData,data_xform)
else:
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins