We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4bb7b6f commit 3d1c293Copy full SHA for 3d1c293
lib/matplotlib/ticker.py
@@ -1693,7 +1693,7 @@ def _validate_steps(steps):
1693
steps = np.asarray(steps)
1694
if np.any(np.diff(steps) <= 0):
1695
raise ValueError('steps argument must be uniformly increasing')
1696
- if np.any((steps > 10) | (steps < 1)):
+ if steps[-1] > 10 or steps[0] < 1:
1697
warnings.warn('Steps argument should be a sequence of numbers\n'
1698
'increasing from 1 to 10, inclusive. Behavior with\n'
1699
'values outside this range is undefined, and will\n'
0 commit comments