On this page
matplotlib.axis.YAxis.add_callback
YAxis.add_callback(self, func)- 
    
Add a callback function that will be called whenever one of the
Artist's properties changes.Parameters: - 
           
funccallable - 
           
The callback function. It must have the signature:
def func(artist: Artist) -> Anywhere artist is the calling
Artist. Return values may exist but are ignored. 
Returns: - 
           
oidint - 
           
The observer id associated with the callback. This id can be used for removing the callback with
remove_callbacklater. 
See also
 - 
           
 
© 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.YAxis.add_callback.html