Revision: 7123
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7123&view=rev
Author:   astraw
Date:     2009-05-19 21:29:29 +0000 (Tue, 19 May 2009)

Log Message:
-----------
Axis.grid(): allow use of which='major,minor' to have grid on major and minor 
ticks

Modified Paths:
--------------
    trunk/matplotlib/CHANGELOG
    trunk/matplotlib/lib/matplotlib/axis.py

Modified: trunk/matplotlib/CHANGELOG
===================================================================
--- trunk/matplotlib/CHANGELOG  2009-05-19 21:29:19 UTC (rev 7122)
+++ trunk/matplotlib/CHANGELOG  2009-05-19 21:29:29 UTC (rev 7123)
@@ -1,3 +1,6 @@
+2009-05-19 Axis.grid(): allow use of which='major,minor' to have grid
+           on major and minor ticks. -ADS
+
 2009-05-18 Make psd(), csd(), and cohere() wrap properly for complex/two-sided
            versions, like specgram() (SF #2791686) - RMM
 

Modified: trunk/matplotlib/lib/matplotlib/axis.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/axis.py     2009-05-19 21:29:19 UTC (rev 
7122)
+++ trunk/matplotlib/lib/matplotlib/axis.py     2009-05-19 21:29:29 UTC (rev 
7123)
@@ -953,7 +953,7 @@
                 if tick is None: continue
                 tick.gridOn = self._gridOnMinor
                 if len(kwargs): artist.setp(tick.gridline,**kwargs)
-        else:
+        if which.lower().find('major')>=0:
             if b is None: self._gridOnMajor = not self._gridOnMajor
             else: self._gridOnMajor = b
             for tick in self.majorTicks:  # don't use get_ticks here!


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

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to