Version 3.1.2
matplotlib
Fork me on GitHub

matplotlib.axes.Axes.in_axes

Axes.in_axes(self, mouseevent)

Return True if the given mouseevent (in display coords) is in the Axes