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

Commit 930bb82

Browse files
authored
Merge pull request matplotlib#22944 from meeseeksmachine/auto-backport-of-pr-22907-on-v3.5.x
Backport PR matplotlib#22907 on branch v3.5.x (Fix quad mesh cursor data)
2 parents 5c59e4a + f5cca25 commit 930bb82

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎lib/matplotlib/collections.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2213,6 +2213,7 @@ def get_cursor_data(self, event):
22132213
contained, info = self.contains(event)
22142214
if len(info["ind"]) == 1:
22152215
ind, = info["ind"]
2216-
return self.get_array()[ind]
2216+
array = self.get_array()
2217+
return array[ind] if array else None
22172218
else:
22182219
return None

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /