45.md 1.2 KB
Newer Older
W
init  
wizardforcel 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
# 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.

| Parameters: | **context** : string or dict

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

**style** : string or dict

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

**palette** : string or sequence

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

**font** : string

> Font family, see matplotlib font manager.

**font_scale** : float, optional

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

**color_codes** : bool

> 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.

**rc** : dict or None

> Dictionary of rc parameter mappings to override the above.

 |
| --- | --- |