---## 一、sns.set_palette()基础### 1. 函数定义```pythonseaborn.set_palette(palette,n_colors=None,desat=None,color_codes=False) AI代码助手复制代码 palette: 调色板名称、列表或颜色映射对象 n_colors: 调色板中的颜色数量(默认为None,使用全部颜色) desat: 颜色去饱和度比例(0~1之间) color_codes...
cmap = sns.cubehelix_palette(start = 1.5, rot = 3, gamma=0.8, as_cmap = True) sns.heatmap(pt, linewidths = 0.05, ax = ax1, vmax=900, vmin=0, cmap=cmap) 1. 2. 3. 4. 5. # cmap用matplotlib colormap sns.heatmap(pt, linewidths = 0.05, ax = ax2, vmax=900, vmin=0, cma...