seaborn icon indicating copy to clipboard operation
seaborn copied to clipboard

Add a `plot_theme` or similar function to complement `set_theme`

Open mwaskom opened this issue 5 years ago • 1 comments

Like axes_style/set_style, this should report all of the parameters currently set in the theme and work as a context manager.

A little trickier because set() accepts arbitrary rcParams and the other theming functions don't.

Also needs a good name.

mwaskom avatar Sep 07 '20 20:09 mwaskom

Good idea, I'm looking forward to this feature. Also you can use with sns.axes_style("white"), sns.color_palette("pastel") To achieve this function,but it's obviously not convenient and it's not perfect。so please consider achieve this function: with sns.plot_theme(style='white',context='talk',palette='deep',rc=None)

CatNofishing avatar Mar 15 '21 02:03 CatNofishing

This is easy enough to accomplish by stacking context managers:

with sns.axes_style("whitegrid"), sns.color_palette("Set2"):
    sns.boxplot(tips, x="total_bill", y="time", hue="sex")

Not convinced we need an additional function here.

mwaskom avatar Aug 27 '23 12:08 mwaskom