2.2 The colors module

The colors module contains color objects representing all of Pyxplot’s default colors. It also contains the following functions:

colors.spectrum($$spec,norm$)$
The colors.spectrum($$spec,norm$) function returns a color representation of the spectrum $spec$, normalised to brightness $norm$. $spec$ should be a function object that takes a single input (wavelength) with units of length, and may return an output with arbitrary units. $

colors.wavelength($$λ$,$norm$)$
The colors.wavelength($$λ$,$norm$) function returns a color representation of monochromatic light at wavelength $λ$, normalised to brightness $norm$. A value of $norm=1$ is recommended for plotting the complete span of the electromagnetic spectrum without colors clipping to white. $