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

Skip to content

Commit 688fbee

Browse files
committed
fix handling of smallest integer interval
1 parent 0648b73 commit 688fbee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/ticker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1703,7 +1703,7 @@ def _raw_ticks(self, vmin, vmax):
17031703
for i in range(istep):
17041704
step = steps[istep - i]
17051705
if (self._integer and
1706-
np.floor(_vmax) - np.ceil(_vmin) > self._min_n_ticks - 1):
1706+
np.floor(_vmax) - np.ceil(_vmin) >= self._min_n_ticks - 1):
17071707
step = max(1, step)
17081708
best_vmin = (_vmin // step) * step
17091709

0 commit comments

Comments
 (0)