matplotlib.axes.Axes.contains_point

Axes.contains_point(point)[source]

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