8000 FIX: apply tick.side rcparam to major&minor ticks · matplotlib/matplotlib@c21bf6d · GitHub
[go: up one dir, main page]

Skip to content

Commit c21bf6d

Browse files
committed
FIX: apply tick.side rcparam to major&minor ticks
Extends cbb3dc8 to also apply to minor ticks closes #6408
1 parent 6d161d6 commit c21bf6d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,8 @@ def __init__(self, fig, rect,
576576
self.tick_params(top=rcParams['xtick.top'],
577577
bottom=rcParams['xtick.bottom'],
578578
left=rcParams['ytick.left'],
579-
right=rcParams['ytick.right'])
579+
right=rcParams['ytick.right'],
580+
which='both')
580581

581582
def __setstate__(self, state):
582583
self.__dict__ = state

lib/matplotlib/tests/test_axes.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4064,9 +4064,13 @@ def test_rc_tick():
40644064
# tick1On bottom/left
40654065
assert xax._major_tick_kw['tick1On'] == False
40664066
assert xax._major_tick_kw['tick2On'] == True
4067+
assert xax._minor_tick_kw['tick1On'] == False
4068+
assert xax._minor_tick_kw['tick2On'] == True
40674069

40684070
assert yax._major_tick_kw['tick1On'] == True
40694071
assert yax._major_tick_kw['tick2On'] == False
4072+
assert yax._minor_tick_kw['tick1On'] == True
4073+
assert yax._minor_tick_kw['tick2On'] == False
40704074

40714075

40724076
@cleanup

0 commit comments

Comments
 (0)
0