seaborn.blend_palette#
- seaborn.blend_palette(colors, n_colors=6, as_cmap=False, input='rgb')#
建立一個在顏色列表中混合的調色盤。
- 參數:
- colors由
input
解釋的各種格式的顏色序列 在
input
空間中的十六進制代碼、HTML 顏色名稱或元組。- n_colorsint,可選
調色盤中的顏色數量。
- as_cmapbool,可選
如果為 True,則返回
matplotlib.colors.ListedColormap
。
- colors由
- 返回:
- 調色盤
RGB 元組列表或
matplotlib.colors.ListedColormap
範例