Is there a python library with a rainbow color function?
What I want is a function such that I give as input a number between 0.
and 1.
and it returns a color on the rainbow palette between red and violet. In this way, if the input is
np.linspace(0.,1.,7)
it will return the seven colors of the rainbow in order.