[ACCEPTED]-How to update the contents of a FigureCanvasTkAgg-tkinter-canvas
Accepted answer
#call the clear method on your axes
self.ax.clear()
#plot the new data
self.ax.set_ylim(min(newy), max(newy))
self.ax.semilogx(newx, newy, 'o-')
#call the draw method on your canvas
self.canvas.draw()
hope this helps
0
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.