matplotlib.colors.Colormap in Python
The matplotlib.colors.Colormap class is a base class for all scalar to RGBA mappings. Generally colormap instance are used to transform data values (floats) from interval 0-1 to their respective RGBA color. Here the matplotlib.colors.Normalize class is used for scaling the data. The matplotlib.cm.ScalarMappable subclasses heavily use this for data->normalize->map-to-color processing chain.
Matplotlib.colors.Colormap class in Python
The matplotlib.colors.Colormap class belongs to the matplotlib.colors module. The matplotlib.colors module is used for converting color or numbers arguments to RGBA or RGB. This module is used for mapping numbers to colors or color specification conversion in a 1-D array of colors also known as Matplotlib Colormaps.