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

Skip to content

Commit 428eb89

Browse files
author
Aditya Sinha A
committed
Autominorticker feature added
1 parent ba2c9c5 commit 428eb89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/ticker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2635,9 +2635,9 @@ def __init__(self, n=None):
26352635
If *n* is omitted or None, it will be set to 5 or 4.
26362636
"""
26372637
if n == None:
2638-
if self.axis.__name__ == 'x':
2638+
if Locator.axis.__name__ == 'xaxis':
26392639
self.ndivs = rcParams['xtick.minor.ndivs']
2640-
elif self.axis.__name__ == 'y':
2640+
elif Locator.axis.__name__ == 'yaxis':
26412641
self.ndivs = rcParams['ytick.minor.ndivs']
26422642
elif n == 'auto':
26432643
self.ndivs = None

0 commit comments

Comments
 (0)