dynamically updating plot in matplotlib,plt.draw()