|
From: <as...@us...> - 2009-12-21 00:46:38
|
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.
|