how to update a plot in matplotlib?,fig.canvas.draw()