All of the color mapping in Matplotlib is currently derived fromScalerMappable
which as the name suggests maps scalers from R^1 ->R^4
RGBA color space. It is common to want to map a vector tocolors, for example to control the alpha based on a second value in ascatter plot or to show the orientation of a field.