9 lines
184 B
Python
9 lines
184 B
Python
import seaborn
|
|
|
|
|
|
def get_seaborn_colors(n, palette='husl'):
|
|
"""
|
|
使用Seaborn的调色板生成颜色。
|
|
"""
|
|
return seaborn.color_palette(palette, n_colors=n).as_hex()
|