Version 3.1.2
matplotlib
Fork me on GitHub

matplotlib.axis.YAxis.contains

YAxis.contains(self, mouseevent)[source]

Test whether the mouse event occurred in the y axis.

Returns True | False