From: <lee...@us...> - 2009-05-17 22:13:30
|
Revision: 7116 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7116&view=rev Author: leejjoon Date: 2009-05-17 22:13:22 +0000 (Sun, 17 May 2009) Log Message: ----------- Merged revisions 7115 via svnmerge from https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/v0_98_5_maint ........ r7115 | leejjoon | 2009-05-17 18:04:38 -0400 (Sun, 17 May 2009) | 2 lines Fix bug(#2749174) that some properties of minor ticks are not conserved. ........ Modified Paths: -------------- trunk/matplotlib/CHANGELOG trunk/matplotlib/lib/matplotlib/axis.py Property Changed: ---------------- trunk/matplotlib/ Property changes on: trunk/matplotlib ___________________________________________________________________ Modified: svnmerge-integrated - /branches/v0_91_maint:1-6428 /branches/v0_98_5_maint:1-7110 + /branches/v0_91_maint:1-6428 /branches/v0_98_5_maint:1-7115 Modified: trunk/matplotlib/CHANGELOG =================================================================== --- trunk/matplotlib/CHANGELOG 2009-05-17 22:04:38 UTC (rev 7115) +++ trunk/matplotlib/CHANGELOG 2009-05-17 22:13:22 UTC (rev 7116) @@ -1,3 +1,6 @@ +2009-05-17 Fix bug(#2749174) that some properties of minor ticks are + not conserved -JJL + 2009-05-17 applied Michiel's sf patch 2790638 to turn off gtk event loop in setupext for pygtk>=2.15.10 - JDH Modified: trunk/matplotlib/lib/matplotlib/axis.py =================================================================== --- trunk/matplotlib/lib/matplotlib/axis.py 2009-05-17 22:04:38 UTC (rev 7115) +++ trunk/matplotlib/lib/matplotlib/axis.py 2009-05-17 22:13:22 UTC (rev 7116) @@ -1325,8 +1325,12 @@ assert position in ('top', 'bottom', 'both', 'default', 'none') - ticks = list( self.get_major_ticks() ) # a copy - ticks.extend( self.get_minor_ticks() ) + # The first ticks of major & minor ticks should always be + # included, otherwise, the information can be lost. Thus, use + # majorTicks instead of get_major_ticks() which may return + # empty list. + ticks = list( self.majorTicks ) # a copy + ticks.extend( self.minorTicks ) if position == 'top': for t in ticks: @@ -1566,8 +1570,12 @@ """ assert position in ('left', 'right', 'both', 'default', 'none') - ticks = list( self.get_major_ticks() ) # a copy - ticks.extend( self.get_minor_ticks() ) + # The first ticks of major & minor ticks should always be + # included, otherwise, the information can be lost. Thus, use + # majorTicks instead of get_major_ticks() which may return + # empty list. + ticks = list( self.majorTicks ) # a copy + ticks.extend( self.minorTicks ) if position == 'right': self.set_offset_position('right') This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |