Skip to content

Commit 508d3b2

Browse files
committed
Put back missing +1s
1 parent 6b312bf commit 508d3b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/ticker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2500,9 +2500,9 @@ def get_log_range(lo, hi):
25002500
# Calculate all the ranges, so we can determine striding
25012501
if has_a:
25022502
if has_b:
2503-
a_range = get_log_range(linthresh, np.abs(vmin))
2503+
a_range = get_log_range(linthresh, np.abs(vmin) + 1)
25042504
else:
2505-
a_range = get_log_range(np.abs(vmax), np.abs(vmin))
2505+
a_range = get_log_range(np.abs(vmax), np.abs(vmin) + 1)
25062506
else:
25072507
a_range = (0, 0)
25082508

0 commit comments

Comments
 (0)