Clearing and plotting mathplot figure on tkinter
问题 I need some help for my current code. I want to create a window by tkinter and show a plot in a canvas I created by matplotlib before. This point I reached yet. My problem is that I want to clear this canvas by hitting a button. To clear a canvas I suppose to initialize this before I can fill it with the plot. So my question is: How can I fill a plot in a created canvas? Below you can find a small code that shows my state of arts. from matplotlib.figure import Figure from matplotlib.backends