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