When using matplotlib.colors.BoundaryNorm, the number of colors argument must match the number of colors in the colormap (256 by default). Otherwise, the normalized colors won't cover the whole range of the colormap.
CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.