Revision: 7291
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7291&view=rev
Author:   leejjoon
Date:     2009-07-23 21:59:15 +0000 (Thu, 23 Jul 2009)

Log Message:
-----------
axes_grid: axisline respect rcParam's tick.direction

Modified Paths:
--------------
    trunk/matplotlib/lib/mpl_toolkits/axes_grid/axislines.py

Modified: trunk/matplotlib/lib/mpl_toolkits/axes_grid/axislines.py
===================================================================
--- trunk/matplotlib/lib/mpl_toolkits/axes_grid/axislines.py    2009-07-23 
21:36:51 UTC (rev 7290)
+++ trunk/matplotlib/lib/mpl_toolkits/axes_grid/axislines.py    2009-07-23 
21:59:15 UTC (rev 7291)
@@ -434,6 +434,13 @@
             if self.passthru_pt[1 - self.nth_coord] > 0.5:
                 angle = 180+angle
 
+
+            # take care the tick direction
+            if self.nth_coord == 0 and rcParams["xtick.direction"] == "out":
+                angle += 180
+            elif self.nth_coord == 1 and rcParams["ytick.direction"] == "out":
+                angle += 180
+
             major = self.axis.major
             majorLocs = major.locator()
             major.formatter.set_locs(majorLocs)


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to