8000 Stage all changes in has_negative_values · matplotlib/matplotlib@f619877 · GitHub
[go: up one dir, main page]

Skip to content

Commit f619877

Browse files
committed
Stage all changes in has_negative_values
1 parent 84b1bac commit f619877

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3291,10 +3291,6 @@ def has_negative_values(array):
32913291
return np.any(array < 0)
32923292
except TypeError:
32933293
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
32983294

32993295
if has_negative_values(xerr) or has_negative_values(yerr):
33003296
raise ValueError(

0 commit comments

Comments
 (0)
0