Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5c42d71

Browse files
committed
BUG: ensure we never do nan < nan
1 parentd91d216 commit5c42d71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎lib/matplotlib/axes/_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3756,7 +3756,7 @@ def apply_mask(arrays, mask):
37563756
f"'{dep_axis}err' must not contain None. "
37573757
"Use NaN if you want to skip a value.")
37583758

3759-
ifnp.any((err<-err)& (err==err)):
3759+
ifnp.any((check:=err[err==err])<-check):
37603760
# like err<0, but also works for timedelta and nan.
37613761
raiseValueError(
37623762
f"'{dep_axis}err' must not contain negative values")

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp