I find that when I change the format of the x-axis tick labels, the values of the labels are not correct when I zoom into an area on the graph
# create a simple plot
x=arange(6e-6,7e-6,100e-9)
y=random.rand(len(x))
f=plt.figure(1)
plt.plot(x,y)
plt.grid()
f1=plt.figure(1)
plt.plot(x,y)
#Then I change the format of the labels:
x=f.get_axes()[0]
xlabels = [format(label, ',.1f') for label in ax.get_xticks()]
ax.set_xticklabels(xlabels)
#and when I zoom in, the peak is not at the same x-location as before the zoom