https://matplotlib.org/stable/users/event_handling.html