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