a = np.random.rand(100).reshape(10,10)

plt.imshow(a, cmap=plt.cm.jet, interpolation='nearest')
plt.colorbar()

plt.show()