See https://stackoverflow.com/questions/70072297/pyplot-buttons-do-not-work-reliably-on-windows-10. I have only tried Python 3.7 ...
Add a button + images to your NavigationToolBar If you want to add some buttons just follow the doc given by the class NavigationToolbar2 () that is initialised in NavigationToolbar2QT () wich is ...