MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / set_mouseover

Method set_mouseover

lib/matplotlib/artist.py:1452–1473  ·  view source on GitHub ↗

Set whether this artist is queried for custom context information when the mouse cursor moves over it. Parameters ---------- mouseover : bool See Also -------- get_cursor_data .ToolCursorPosition .NavigationToolbar2

(self, mouseover)

Source from the content-addressed store, hash-verified

1450 return self._mouseover
1451
1452 def set_mouseover(self, mouseover):
1453 """
1454 Set whether this artist is queried for custom context information when
1455 the mouse cursor moves over it.
1456
1457 Parameters
1458 ----------
1459 mouseover : bool
1460
1461 See Also
1462 --------
1463 get_cursor_data
1464 .ToolCursorPosition
1465 .NavigationToolbar2
1466 """
1467 self._mouseover = bool(mouseover)
1468 ax = self.axes
1469 if ax:
1470 if self._mouseover:
1471 ax._mouseover_set.add(self)
1472 else:
1473 ax._mouseover_set.discard(self)
1474
1475 mouseover = property(get_mouseover, set_mouseover) # backcompat.
1476

Callers 1

__init__Method · 0.80

Calls 2

discardMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected