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
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:
imshow()
show()
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.