I\'m plotting some data in a Tkinter FigureCanvasTkagg using matplotlib.
I need to clear the figure where I plot data and draw new data when a button is presse
#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()