I have a simple hist2d in which I'd like to range the density (colorbar) between 0 to 1.
Here is my code:
plt.hist2d(x_values, y_values, bins=50, normed=True)
plt.colorbar(norm=colors.NoNorm)
How can it set the colorbar values between 0.0 to 1.0? e.g.: [0.0, 0.2, 0.4, 06, 0.8, 1.0]