seaborn.
axes_style
(style=None, rc=None)¶Return a parameter dict for the aesthetic style of the plots.
This affects things like the color of the axes, whether a grid is enabled by default, and other aesthetic elements.
This function returns an object that can be used in a with
statement
to temporarily change the style parameters.
Parameters: | style : dict, None, or one of {darkgrid, whitegrid, dark, white, ticks}
rc : dict, optional
|
---|
See also
set_style
plotting_context
color_palette
Examples
>>> st = axes_style("whitegrid")
>>> set_style("ticks", {"xtick.major.size": 8, "ytick.major.size": 8})
>>> import matplotlib.pyplot as plt
>>> with axes_style("white"):
... f, ax = plt.subplots()
... ax.plot(x, y)