How to update the contents of a FigureCanvasTkAgg How to update the contents of a FigureCanvasTkAgg tkinter tkinter

How to update the contents of a FigureCanvasTkAgg


#call the clear method on your axesself.ax.clear()#plot the new dataself.ax.set_ylim(min(newy), max(newy))self.ax.semilogx(newx, newy, 'o-')#call the draw method on your canvasself.canvas.draw()

hope this helps