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 d91d216 commit 5c42d71Copy full SHA for 5c42d71
lib/matplotlib/axes/_axes.py
@@ -3756,7 +3756,7 @@ def apply_mask(arrays, mask):
3756
f"'{dep_axis}err' must not contain None. "
3757
"Use NaN if you want to skip a value.")
3758
3759
- if np.any((err < -err) & (err == err)):
+ if np.any((check := err[err == err]) < -check):
3760
# like err<0, but also works for timedelta and nan.
3761
raise ValueError(
3762
f"'{dep_axis}err' must not contain negative values")
0 commit comments