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
For me the previous answer did not work, rather the following was required:
from Tkinter import PhotoImage import matplotlib thismanager = matplotlib.pyplot.get_current_fig_manager() img = PhotoImage(file='filename.ppm') thismanager.window.tk.call('wm', 'iconphoto', thismanager.window._w, img)