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.
2 parents dc6f462 + 88f495b commit f82fc3bCopy full SHA for f82fc3b
1 file changed
lib/matplotlib/colorbar.py
@@ -576,7 +576,10 @@ def _ticker(self):
576
elif isinstance(self.norm, colors.LogNorm):
577
locator = ticker.LogLocator()
578
else:
579
- locator = ticker.MaxNLocator()
+ if mpl.rcParams['_internal.classic_mode']:
580
+ locator = ticker.MaxNLocator()
581
+ else:
582
+ locator = ticker.AutoLocator()
583
584
b = self._boundaries[self._inside]
585
locator = ticker.FixedLocator(b, nbins=10)
0 commit comments