1 Star 0 Fork 1

somefusion / seaborn-doc-zh

forked from ljl / seaborn-doc-zh 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
69.md 918 Bytes
一键复制 编辑 原始数据 按行查看 历史
Lingxu Meng 提交于 2019-05-21 15:22 . Update 69.md

seaborn.choose_diverging_palette

译者:Modrisco

seaborn.choose_diverging_palette(as_cmap=False)

启动交互式小部件以创建一个发散调色板。

这与 diverging_palette() 函数相对应。这种调色板适用于对低值和高值都感兴趣并且中间点也有意义的数据。(例如,相对与某些基准值的分数变化)。

需要 2.0 以上版本 IPython,必须在 notebook 中使用。

参数:as_cmap:bool

如果为 True 值,则返回 matplotlib colormap 而不是离散颜色的列表。

返回值:pal or cmap:颜色列表或 matplotlib colormap

可以被传递给 plotting 函数的对象。

另外

生成一个发散调色板或者 colormap。从 colorbrewer 集中交互式选择调色板,包括发散调色板。

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/somefusion/seaborn-doc-zh.git
git@gitee.com:somefusion/seaborn-doc-zh.git
somefusion
seaborn-doc-zh
seaborn-doc-zh
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891