Version 2.2.2
matplotlib

matplotlib.axis.YAxis.contains

YAxis.contains(mouseevent)

Test whether the mouse event occurred in the y axis.

Returns True | False