
    Dj                         d dl Zd Zy)    Nc                     ddl m} t        j                  d| df      }t        j                  dd| d      |ddddf<   |j                  |      j                         S )a}  
    Returns a list of colors sampled at equal intervals over the spectrum.

    Parameters
    ----------
    n : int
        The number of colors to return

    Returns
    -------
    R : (n,3) array
        An 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.
    r   )colors      F)endpointN)
matplotlibr   nponeslinspace
hsv_to_rgbsqueeze)nr   Rs      bC:\Crop_Prediction\Backend\crop-ai-system\venv\Lib\site-packages\statsmodels/graphics/plottools.pyrainbowr      sS    & "
1QA{{1aU3Aa!eHQ''))    )numpyr	   r    r   r   <module>r      s    *r   