The colors module contains color objects representing all of Pyxplot’s default colors. It also contains the following functions:
colors.spectrum() The colors.spectrum() function returns a color representation of the spectrum , normalised to brightness . 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(,) The colors.wavelength(,) function returns a color representation of monochromatic light at wavelength , normalised to brightness . A value of is recommended for plotting the complete span of the electromagnetic spectrum without colors clipping to white.