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

seaborn.set_style¶

seaborn.set_style(style=None, rc=None)¶

设定情节的审美风格。

这会影响轴的颜色、是否默认启用栅格以及其他美学元素。

参数
styledict、None或{darkgrid、whitegrid、dark、white、ticks}之一

参数字典或预配置集的名称。

rc可选的

参数映射以覆盖预设seaborn样式字典中的值。这仅更新被视为样式定义一部分的参数。

参见

axes_style

返回参数的dict或在 with 语句临时设置样式。

set_context

设置参数以缩放打印元素

set_palette

设置图形的默认调色板

实例

>>> set_style("whitegrid")
>>> set_style("ticks", {"xtick.major.size": 8, "ytick.major.size": 8})

Back to top

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