0.12.0.dev0
  • Gallery
  • Tutorial
  • API
  • Site
      • 发行说明
      • 安装
      • 示例库
      • 教程
      • API引用
      • 引用
      • 档案文件
  • Page
      • seaborn.choose_cubehelix_palette

seaborn.choose_cubehelix_palette¶

seaborn.choose_cubehelix_palette(as_cmap=False)¶

启动一个交互式小部件来创建一个连续的cubehelix调色板。

这与 cubehelix_palette() 功能。这种调色板适用于相对无趣的低值和有趣的高值之间的数据。cubehelix系统允许调色板在整个范围内有更多的色调变化,这有助于区分更大范围的值。

需要IPython 2+,并且必须在笔记本中使用。

参数
as_cmap布尔

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

返回
pal或cmap颜色列表或matplotlib colormap

可以传递给绘图函数的对象。

参见

cubehelix_palette

使用cubehelix系统创建顺序调色板或颜色图。

Back to top

© Copyright 2012-2021, Michael Waskom. 构建基于 Sphinx 3.4.1.