Skip to content

Commit 50f4601

Browse files
committed
tick_params: fixed errors in handling top, bottom, etc. kwargs.
svn path=/trunk/matplotlib/; revision=8453
1 parent b27e0b5 commit 50f4601

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

lib/matplotlib/axes.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2168,13 +2168,17 @@ def tick_params(self, axis='both', **kwargs):
21682168
"""
21692169
if axis in ['x', 'both']:
21702170
xkw = dict(kwargs)
2171-
xkw.pop('top', None)
2172-
xkw.pop('bottom', None)
2171+
xkw.pop('left', None)
2172+
xkw.pop('right', None)
2173+
xkw.pop('labelleft', None)
2174+
xkw.pop('labelright', None)
21732175
self.xaxis.set_tick_params(**xkw)
21742176
if axis in ['y', 'both']:
21752177
ykw = dict(kwargs)
2176-
ykw.pop('left', None)
2177-
ykw.pop('right', None)
2178+
ykw.pop('top', None)
2179+
ykw.pop('bottom', None)
2180+
ykw.pop('labeltop', None)
2181+
ykw.pop('labelbottom', None)
21782182
self.yaxis.set_tick_params(**ykw)
21792183

21802184
def set_axis_off(self):

0 commit comments

Comments
 (0)