matplotlib.axis.YAxis.contains

YAxis.contains(self, mouseevent)[source]

Test whether the mouse event occurred in the y axis.

Returns True | False