I was trying to create custom color map with exaples from documentation but I have no idea how setting color range works.
The spacing='proportional'
option of plt.colorbar
shows the boundaries at their proportional location. The default shows 3 equally-spaced boundaries together with the values.