Version 2.2.4
matplotlib

matplotlib.axis.YAxis.contains

YAxis.contains(mouseevent)[source]

Test whether the mouse event occurred in the y axis.

Returns True | False