I am plotting a numpy array with matplotlib (imshow function). Its size is 1000*3000 and its values are floats between 0 and around 2000.
When the maximum values are around 10 (it was just for a test) I have correct values on my figure, but with that amplitude, all values are rounded to int so I cannot see the nuance in some part of my array.
Is there a parameter in imshow corresponding to that problem ? I thought to the second (cmap=None) but I didn't succeed.
Here is an example :
import numpy as np
import matplotlib.pyplot as plt
import random as rand
data = np.zeros((10,10))
for i in range(10):
for j in range(10):
data[i,j] = 900 + 10*i + rand.random()
plt.imshow(data)
plt.show()
The values in the matplotlib window are all integer whereas in the real array they are not.