Change icon in a Matplotlib figure window
icons, matplotlib, python, tkinter
Solution
I solved it in this way: BEFORE I press the button that creates the figure with `imshow()` and `show()`, I initialize the figure in this way:
plt.Figure()
thismanager = get_current_fig_manager()
thismanager.window.wm_iconbitmap("icon.ico")
so when I press `show()` the window has the icon I want.
Problem
Is it possible to change the icon of a Matplotlibe figure window? My application has a button that opens a Figure window with a graph (created with Matplotlib). I managed to modify the application icon, but the figure window still has the 'Tk' icon, typical of Tkinter.