From: <ef...@us...> - 2010-07-15 17:34:48
|
Revision: 8554 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8554&view=rev Author: efiring Date: 2010-07-15 17:34:42 +0000 (Thu, 15 Jul 2010) Log Message: ----------- yaxis.set_ticks_position: fix bug with 'none'; thanks to Ben North Modified Paths: -------------- branches/v1_0_maint/lib/matplotlib/axis.py Modified: branches/v1_0_maint/lib/matplotlib/axis.py =================================================================== --- branches/v1_0_maint/lib/matplotlib/axis.py 2010-07-15 03:53:14 UTC (rev 8553) +++ branches/v1_0_maint/lib/matplotlib/axis.py 2010-07-15 17:34:42 UTC (rev 8554) @@ -1886,11 +1886,12 @@ def set_ticks_position(self, position): """ - Set the ticks position (left, right, both or default) - both sets the ticks to appear on both positions, but - does not change the tick labels. - default resets the tick positions to the default: - ticks on both positions, labels on the left. + Set the ticks position (left, right, both, default or none) + 'both' sets the ticks to appear on both positions, but does not + change the tick labels. 'default' resets the tick positions to + the default: ticks on both positions, labels at left. 'none' + can be used if you don't want any ticks. 'none' and 'both' + affect only the ticks, not the labels. ACCEPTS: [ 'left' | 'right' | 'both' | 'default' | 'none' ] """ @@ -1904,8 +1905,8 @@ self.set_tick_params(which='both', right=True, left=True) elif position == 'none': - self.set_tick_params(which='both', right=False, labelright=False, - left=False, labelleft=False) + self.set_tick_params(which='both', right=False, + left=False) elif position == 'default': self.set_tick_params(which='both', right=True, labelright=False, left=True, labelleft=True) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |