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 308ce5d + 1a2100b commit 042ad99Copy full SHA for 042ad99
1 file changed
lib/matplotlib/ticker.py
@@ -1434,7 +1434,7 @@ def set_params(self, **kwargs):
1434
def bin_boundaries(self, vmin, vmax):
1435
nbins = self._nbins
1436
if nbins == 'auto':
1437
- nbins = self.axis.get_tick_space()
+ nbins = min(self.axis.get_tick_space(), 9)
1438
scale, offset = scale_range(vmin, vmax, nbins)
1439
if self._integer:
1440
scale = max(1, scale)
0 commit comments