Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00ea794 commit eae69a3Copy full SHA for eae69a3
lib/matplotlib/ticker.py
@@ -2910,10 +2910,12 @@ def __call__(self):
2910
return []
2911
2912
if self.ndivs is None:
2913
- if self.axis.axis_name == 'x':
2914
- self.ndivs = mpl.rcParams['xtick.minor.ndivs']
2915
- else:
+
+ if self.axis.axis_name == 'y':
2916
self.ndivs = mpl.rcParams['ytick.minor.ndivs']
+ else:
2917
+ # for x and z axis
2918
+ self.ndivs = mpl.rcParams['xtick.minor.ndivs']
2919
2920
if self.ndivs == 'auto':
2921
0 commit comments