NIUCLOUD是一款SaaS管理后台框架多应用插件+云编译。上千名开发者、服务商正在积极拥抱开发者生态。欢迎开发者们免费入驻。一起助力发展! 广告
# seaborn.blend_palette > 译者:[Modrisco](https://github.com/Modrisco) ```py seaborn.blend_palette(colors, n_colors=6, as_cmap=False, input='rgb') ``` 创建在颜色列表之间混合的调色板。 参数:`colors`:由 `input` 解释的各种格式的颜色序列。 > 十六进制码,html 颜色名字,或者 `input` 空间中的元组。 `n_colors`:int, 可选 > 调色板中的颜色数。 `as_cmap`:bool, 可选 > 如果为 True 值,则返回 matplotlib colormap 而不是列表。 返回值:`palette or cmap`:seaborn 调色板或 matplotlib colormap > 类似列表的颜色对象的 RGB 元组,或者可以将连续值映射到颜色的 colormap 对象,具体取决于 `as_cmap` 参数的值。