Dynamically updating a bar plot in matplotlib,plt.show()