SourceForge logo
SourceForge logo
Menu

matplotlib-checkins

From: <ry...@us...> - 2010年07月09日 18:30:14
Revision: 8539
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8539&view=rev
Author: ryanmay
Date: 2010年07月09日 18:30:07 +0000 (2010年7月09日)
Log Message:
-----------
Fix setting of minor ticklabels. As far as I can tell, the extra call to set_major_formatter is due to an SVN merge error from the transforms branch.
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月09日 18:28:47 UTC (rev 8538)
+++ branches/v1_0_maint/lib/matplotlib/axis.py	2010年07月09日 18:30:07 UTC (rev 8539)
@@ -1423,11 +1423,9 @@
 self.set_minor_formatter(mticker.FixedFormatter(ticklabels))
 ticks = self.get_minor_ticks()
 else:
- self.set_major_formatter( mticker.FixedFormatter(ticklabels) )
+ self.set_major_formatter(mticker.FixedFormatter(ticklabels))
 ticks = self.get_major_ticks()
 
- self.set_major_formatter( mticker.FixedFormatter(ticklabels) )
-
 ret1 = []
 ret2 = []
 for i, tick in enumerate(ticks):
@@ -1985,5 +1983,3 @@
 self.axes.dataLim.intervaly = ymin, ymax
 if not viewMutated:
 self.axes.viewLim.intervaly = ymin, ymax
-
-
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
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 (2010年7月15日)
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.
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /