Skip to content

Commit e964496

Browse files
committed
FIX: re-add get_cursor_data now that mouseover is set to False by default
1 parent 2b30478 commit e964496

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/matplotlib/collections.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2196,3 +2196,11 @@ def draw(self, renderer):
21962196
gc.restore()
21972197
renderer.close_group(self.__class__.__name__)
21982198
self.stale = False
2199+
2200+
def get_cursor_data(self, event):
2201+
contained, info = self.contains(event)
2202+
if len(info["ind"]) == 1:
2203+
ind, = info["ind"]
2204+
return self.get_array()[ind]
2205+
else:
2206+
return None

0 commit comments

Comments
 (0)