45.md 1.2 KB
Newer Older
W
init  
wizardforcel 已提交
1 2 3 4 5 6 7 8 9 10
# seaborn.set

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

Set aesthetic parameters in one step.

Each set of parameters can be set directly or temporarily, see the referenced functions below for more information.

W
wizardforcel 已提交
11
参数:`context`:string or dict
W
init  
wizardforcel 已提交
12 13 14

> Plotting context parameters, see [`plotting_context()`](seaborn.plotting_context.html#seaborn.plotting_context "seaborn.plotting_context")

W
wizardforcel 已提交
15
`style`:string or dict
W
init  
wizardforcel 已提交
16 17 18

> Axes style parameters, see [`axes_style()`](seaborn.axes_style.html#seaborn.axes_style "seaborn.axes_style")

W
wizardforcel 已提交
19
`palette`:string or sequence
W
init  
wizardforcel 已提交
20 21 22

> Color palette, see [`color_palette()`](seaborn.color_palette.html#seaborn.color_palette "seaborn.color_palette")

W
wizardforcel 已提交
23
`font`:string
W
init  
wizardforcel 已提交
24 25 26

> Font family, see matplotlib font manager.

W
wizardforcel 已提交
27
`font_scale`:float, optional
W
init  
wizardforcel 已提交
28 29 30

> Separate scaling factor to independently scale the size of the font elements.

W
wizardforcel 已提交
31
`color_codes`:bool
W
init  
wizardforcel 已提交
32 33 34

> If `True` and `palette` is a seaborn palette, remap the shorthand color codes (e.g. “b”, “g”, “r”, etc.) to the colors from this palette.

W
wizardforcel 已提交
35
`rc`:dict or None
W
init  
wizardforcel 已提交
36 37 38

> Dictionary of rc parameter mappings to override the above.