When creating an numpy array with dtype=float, the the presentation method using matplotlib.pyplot.imshow appears to be dependent on the v
numpy
dtype=float
matplotlib.pyplot.imshow
Found out that imshow does normalize by default, so to avoid this, the vmin and vmax must be given to imshow, which is then:
imshow
vmin
vmax
plt.imshow(img, cmap='gray', vmin=0, vmax=1)