a = np.arange(0,100,1).reshape(10,10)

plt.scatter(np.random.rand(100), np.random.rand(100),
            c=a, cmap=plt.cm.jet, edgecolor='none', s=30)
plt.colorbar(aspect=40, pad=0.08, orientation='vertical')
plt.show()