matplotlib.axes.Axes.in_axes

Axes.in_axes(mouseevent)

Return whether the given event (in display coords) is in the Axes.