#NEWLINE# def husl_palette( n_colors = 6 , h = 0.01 , s = 0.9 , l = 0.65 ) : #NEWLINE# #INDENT# 'Get a set of evenly spaced colors in HUSL hue space.\n\n    h, s, and l should be between 0 and 1\n\n    Parameters\n    ----------\n\n    n_colors : int\n        number of colors in the palette\n    h : float\n        first hue\n    s : float\n        saturation\n    l : float\n        lightness\n\n    Returns\n    -------\n    palette : seaborn color palette\n        List-like object of colors as RGB tuples.\n\n    See Also\n    --------\n    hls_palette : Make a palette using evently spaced circular hues in the\n                  HSL system.\n\n    Examples\n    --------\n\n    Create a palette of 10 colors with the default parameters:\n\n    .. plot::\n        :context: close-figs\n\n        >>> import seaborn as sns; sns.set()\n        >>> sns.palplot(sns.husl_palette(10))\n\n    Create a palette of 10 colors that begins at a different hue value:\n\n    .. plot::\n        :context: close-figs\n\n        >>> sns.palplot(sns.husl_palette(10, h=.5))\n\n    Create a palette of 10 colors that are darker than the default:\n\n    .. plot::\n        :context: close-figs\n\n        >>> sns.palplot(sns.husl_palette(10, l=.4))\n\n    Create a palette of 10 colors that are less saturated than the default:\n\n    .. plot::\n        :context: close-figs\n\n        >>> sns.palplot(sns.husl_palette(10, s=.4))\n\n    ' #NEWLINE# hues = np . linspace ( 0 , 1 , ( n_colors + 1 ) ) [ : ( - 1 ) ] #NEWLINE# hues += h #NEWLINE# hues %= 1 #NEWLINE# hues *= 359 #NEWLINE# s *= 99 #NEWLINE# l *= 99 #NEWLINE# palette = [ husl . husl_to_rgb ( h_i , s , l ) for h_i in hues ] #NEWLINE# return _ColorPalette ( palette )