data = [[0, 0.25], [0.5, 0.75]]
fig, ax = plt.subplots()
im = ax.imshow(data, cmap=plt.get_cmap('hot'), interpolation='nearest',
    vmin=0, vmax=1)
fig.colorbar(im)
plt.show()
matplotlib imshow - default colour normalisation