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

Skip to content

Commit eae69a3

Browse files
author
Vladimir
committed
fix: Handle the z-axis case
1 parent 00ea794 commit eae69a3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/matplotlib/ticker.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2910,10 +2910,12 @@ def __call__(self):
29102910
return []
29112911

29122912
if self.ndivs is None:
2913-
if self.axis.axis_name == 'x':
2914-
self.ndivs = mpl.rcParams['xtick.minor.ndivs']
2915-
else:
2913+
2914+
if self.axis.axis_name == 'y':
29162915
self.ndivs = mpl.rcParams['ytick.minor.ndivs']
2916+
else:
2917+
# for x and z axis
2918+
self.ndivs = mpl.rcParams['xtick.minor.ndivs']
29172919

29182920
if self.ndivs == 'auto':
29192921

0 commit comments

Comments
 (0)