how to update a plot in matplotlib?,plt.show()