Added _normalize() function for colormaps.