def hls_palette(n_colors=6, h=0.01, l=0.6, s=0.65):
 hues = np.linspace(0, 1, (n_colors + 1))[:(-1)]
 hues += h
 hues %= 1
 hues -= hues.astype(int)
 palette = [colorsys.hls_to_rgb(h_i, l, s) for h_i in hues]
 return _ColorPalette(palette)

def hls_palette ( n_colors = 6 , h = 0.01 , l = 0.6 , s = 0.65 ) : hues = np . linspace ( 0 , 1 , ( n_colors + 1 ) ) [ : ( - 1 ) ] hues += h hues %= 1 hues -= hues . astype ( int ) palette = [ colorsys . hls_to_rgb ( h_i , l , s ) for h_i in hues ] return _ColorPalette ( palette )
get a set of evenly spaced colors in hls hue space .