Test whether the artist contains the mouse event. Parameters ---------- mouseevent : `~matplotlib.backend_bases.MouseEvent` Returns ------- contains : bool Whether any values are within the radius. details : dict
(self, mouseevent)
| 506 | and event.canvas is not fig.canvas) |
| 507 | |
| 508 | def contains(self, mouseevent): |
| 509 | """ |
| 510 | Test whether the artist contains the mouse event. |
| 511 | |
| 512 | Parameters |
| 513 | ---------- |
| 514 | mouseevent : `~matplotlib.backend_bases.MouseEvent` |
| 515 | |
| 516 | Returns |
| 517 | ------- |
| 518 | contains : bool |
| 519 | Whether any values are within the radius. |
| 520 | details : dict |
| 521 | An artist-specific dictionary of details of the event context, |
| 522 | such as which points are contained in the pick radius. See the |
| 523 | individual Artist subclasses for details. |
| 524 | """ |
| 525 | _log.warning("%r needs 'contains' method", self.__class__.__name__) |
| 526 | return False, {} |
| 527 | |
| 528 | def pickable(self): |
| 529 | """ |