Matplotlib Button Click, on_clicked(func) [source] # Connect the callback function func to button click events.