statsmodels.graphics.plottools.rainbow#

statsmodels.graphics.plottools.rainbow(n)[source]#

Return a list of colors sampled at equal intervals over the spectrum

Parameters:
nint

The number of colors to return

Returns:
R(n,3) array

An array of rows of RGB color values

Notes

Converts from HSV coordinates (0, 1, 1) to (1, 1, 1) to RGB. Based on the Sage function of the same name.