Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fa4f868

Browse files
tickminorvisible-fix
1 parent 99d8900 commit fa4f868

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/scale.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ def set_default_locators_and_formatters(self, axis):
6969
axis.set_major_formatter(ScalarFormatter())
7070
axis.set_minor_formatter(NullFormatter())
7171
# update the minor locator for x and y axis based on rcParams
72-
if rcParams['xtick.minor.visible']:
72+
if axis.axis_name in list("xy") and \
73+
rcParams['{}tick.minor.visible'.format(axis.axis_name)]:
7374
axis.set_minor_locator(AutoMinorLocator())
7475
else:
7576
axis.set_minor_locator(NullLocator())

0 commit comments

Comments
 (0)