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

Commitd1be7f7

Browse files
authored
Merge pull request#22963 from meeseeksmachine/auto-backport-of-pr-22957-on-v3.5.x
Backport PR#22957 on branch v3.5.x (fix "is" comparison for np.array)
2 parents25c1c3d +f9fe06b commitd1be7f7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎lib/matplotlib/collections.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2212,6 +2212,9 @@ def get_cursor_data(self, event):
22122212
iflen(info["ind"])==1:
22132213
ind,=info["ind"]
22142214
array=self.get_array()
2215-
returnarray[ind]ifarrayelseNone
2215+
ifarrayisnotNone:
2216+
returnarray[ind]
2217+
else:
2218+
returnNone
22162219
else:
22172220
returnNone

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp