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.
1 parent 84b1bac commit f619877Copy full SHA for f619877
lib/matplotlib/axes/_axes.py
@@ -3291,10 +3291,6 @@ def has_negative_values(array):
3291
return np.any(array < 0)
3292
except TypeError:
3293
pass # Don't fail on 'datetime.*' types
3294
- if np.any(array < 0):
3295
- return True
3296
- except TypeError: # Don't fail on 'datetime.*' types
3297
- pass
3298
3299
if has_negative_values(xerr) or has_negative_values(yerr):
3300
raise ValueError(
0 commit comments