On this page
matplotlib.axis.YTick.set_contains
YTick.set_contains(self, picker)- 
    
Define a custom contains test for the artist.
The provided callable replaces the default
containsmethod of the artist.Parameters: - 
           
pickercallable - 
           
A custom picker function to evaluate if an event is within the artist. The function must have the signature:
def contains(artist: Artist, event: MouseEvent) -> bool, dictthat returns:
- a bool indicating if the event is within the artist
 - a dict of additional information. The dict should at least return the same information as the default 
contains()implementation of the respective artist, but may provide additional information. 
 
 - 
           
 
© 2012–2018 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
 https://matplotlib.org/3.2.2/api/_as_gen/matplotlib.axis.YTick.set_contains.html