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

seaborn.set_theme¶

seaborn.set_theme(context='notebook', style='darkgrid', palette='deep', font='sans-serif', font_scale=1, color_codes=True, rc=None)¶

一步设置多个主题参数。

每套参数可以直接设置,也可以临时设置,详见下面引用的函数。

参数
context字符串或dict

打印上下文参数,请参见 plotting_context() .

style字符串或dict

轴样式参数,请参见 axes_style() .

palette字符串或序列

调色板,请参见 color_palette() .

font一串

字体系列,请参见matplotlib字体管理器。

font_scale可选浮动

单独的缩放因子独立缩放字体元素的大小。

color_codes布尔

如果 True 和 palette 是seaborn调色板,请将速记颜色代码(例如“b”、“g”、“r”等)重新映射到此调色板的颜色。

rc不记名

rc参数映射的字典来覆盖上面的。

Back to top

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