Skip to content

Commit 88d1efc

Browse files
committed
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.
svn path=/trunk/matplotlib/; revision=8538
1 parent ecdf54d commit 88d1efc

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/matplotlib/axis.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -1423,11 +1423,9 @@ def set_ticklabels(self, ticklabels, *args, **kwargs):
14231423
self.set_minor_formatter(mticker.FixedFormatter(ticklabels))
14241424
ticks = self.get_minor_ticks()
14251425
else:
1426-
self.set_major_formatter( mticker.FixedFormatter(ticklabels) )
1426+
self.set_major_formatter(mticker.FixedFormatter(ticklabels))
14271427
ticks = self.get_major_ticks()
14281428

1429-
self.set_major_formatter( mticker.FixedFormatter(ticklabels) )
1430-
14311429
ret1 = []
14321430
ret2 = []
14331431
for i, tick in enumerate(ticks):
@@ -1985,5 +1983,3 @@ def set_default_intervals(self):
19851983
self.axes.dataLim.intervaly = ymin, ymax
19861984
if not viewMutated:
19871985
self.axes.viewLim.intervaly = ymin, ymax
1988-
1989-

0 commit comments

Comments
 (0)