U
    Kvf{  ć                   @   s   d dl Zdd ZdS )é    Nc                 C   sJ   ddl m} t d| df”}tjdd| dd|ddddf< | |” ” 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)ZendpointN)Z
matplotlibr   ŚnpZonesZlinspaceZ
hsv_to_rgbZsqueeze)Śnr   ŚR© r   śB/tmp/pip-unpacked-wheel-2v6byqio/statsmodels/graphics/plottools.pyŚrainbow   s     r
   )Znumpyr   r
   r   r   r   r	   Ś<module>   s   