I want to remove some of the buttons from plot toolbar (matplotlib).
I saw that there are some old solutions:
How to modify the navigation too
After trying many solutions, I have found that this works very well.
toolbar = plt.get_current_fig_manager().toolbar unwanted_buttons = ['Subplots','Save'] for x in toolbar.actions(): if x.text() in unwanted_buttons: toolbar.removeAction(x)