For example, I have a numpy array and I use matplotlib to show it as follow:
import numpy as np
import matplotlib.pyplot as plt
img = np.array([[12,230],[1322,2122]])
tmp = plt.imshow(img,cmap=plt.cm.jet)
plt.colorbar()
plt.show()
The result:
But I want to show complete number like 2122
without scientific notation 2.12e+03
in the lower right corner. Some ways from prevent scientific notation in matplotlib.pyplot and Is ticklabel_format broken? don't work.
How can I do it? Thanks in advance.