ó
áp7]c           @   s   d  d l  Z d „  Z d S(   iÿÿÿÿNc         C   si   d d l  m } t j d |  d f ƒ } t j d d |  d t ƒ| d d d … d f <| j | ƒ j ƒ  S(   s}  
    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.
    iÿÿÿÿ(   t   colorsi   i   i    t   endpointN(   t
   matplotlibR    t   npt   onest   linspacet   Falset
   hsv_to_rgbt   squeeze(   t   nR    t   R(    (    s=   lib/python2.7/site-packages/statsmodels/graphics/plottools.pyt   rainbow   s    .(   t   numpyR   R   (    (    (    s=   lib/python2.7/site-packages/statsmodels/graphics/plottools.pyt   <module>   s   