matplotlib.axes
Axes.
set_contains
Define a custom contains test for the artist.
The provided callable replaces the default contains method of the artist.
contains
A custom picker function to evaluate if an event is within the artist. The function must have the signature:
def contains(artist: Artist, event: MouseEvent) -> bool, dict
that returns:
contains()