Updating the x-axis values using matplotlib animation,plt.show()