Version 3.1.1
matplotlib
Fork me on GitHub

matplotlib.axes.Axes.contains_point

Axes.contains_point(self, point)

Return whether point (pair of pixel coordinates) is inside the axes patch.