Skip to content

Commit 8971f1d

Browse files
committed
DOC: adjust behavior message
1 parent e964496 commit 8971f1d

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
QuadMesh cursor data removed
2-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3-
`.QuadMesh.get_cursor_data`, introduced in 3.5.1 is unreasonably slow for
4-
large meshes, so this method has been removed.
1+
QuadMesh mouseover defaults to False
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
4+
New in 3.5, `.QuadMesh.get_cursor_data` allows display of data values
5+
under the cursor. However, this can be very slow for large meshes, so
6+
by `.QuadMesh.set_mouseover` defaults to *False*.

lib/matplotlib/collections.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -2198,9 +2198,9 @@ def draw(self, renderer):
21982198
self.stale = False
21992199

22002200
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
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)