How to embed matplotlib graph into popup window using python Tkinter How to embed matplotlib graph into popup window using python Tkinter tkinter tkinter

How to embed matplotlib graph into popup window using python Tkinter


You have just forgotten to pack the canvas in the Graph class. Add the line

self.canvas.get_tk_widget().pack(side=Tk.TOP, fill=Tk.BOTH, expand=1)

in the __init__ method of Graph, and the graph should show up in the toplevel.