Skip to content

Commit

Permalink
Always use sns.set in API docs
Browse files Browse the repository at this point in the history
Closes #1428
  • Loading branch information
mwaskom committed Jul 5, 2018
1 parent e6fb50d commit 3b20c17
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions seaborn/categorical.py
Original file line number Diff line number Diff line change
Expand Up @@ -2295,7 +2295,7 @@ def boxplot(x=None, y=None, hue=None, data=None, order=None, hue_order=None,
:context: close-figs
>>> import seaborn as sns
>>> sns.set_style("whitegrid")
>>> sns.set(style="whitegrid")
>>> tips = sns.load_dataset("tips")
>>> ax = sns.boxplot(x=tips["total_bill"])
Expand Down Expand Up @@ -2473,7 +2473,7 @@ def violinplot(x=None, y=None, hue=None, data=None, order=None, hue_order=None,
:context: close-figs
>>> import seaborn as sns
>>> sns.set_style("whitegrid")
>>> sns.set(style="whitegrid")
>>> tips = sns.load_dataset("tips")
>>> ax = sns.violinplot(x=tips["total_bill"])
Expand Down Expand Up @@ -2686,7 +2686,7 @@ def stripplot(x=None, y=None, hue=None, data=None, order=None, hue_order=None,
:context: close-figs
>>> import seaborn as sns
>>> sns.set_style("whitegrid")
>>> sns.set(style="whitegrid")
>>> tips = sns.load_dataset("tips")
>>> ax = sns.stripplot(x=tips["total_bill"])
Expand Down Expand Up @@ -2889,7 +2889,7 @@ def swarmplot(x=None, y=None, hue=None, data=None, order=None, hue_order=None,
:context: close-figs
>>> import seaborn as sns
>>> sns.set_style("whitegrid")
>>> sns.set(style="whitegrid")
>>> tips = sns.load_dataset("tips")
>>> ax = sns.swarmplot(x=tips["total_bill"])
Expand Down Expand Up @@ -3051,7 +3051,7 @@ def barplot(x=None, y=None, hue=None, data=None, order=None, hue_order=None,
:context: close-figs
>>> import seaborn as sns
>>> sns.set_style("whitegrid")
>>> sns.set(style="whitegrid")
>>> tips = sns.load_dataset("tips")
>>> ax = sns.barplot(x="day", y="total_bill", data=tips)
Expand Down Expand Up @@ -3243,7 +3243,7 @@ def pointplot(x=None, y=None, hue=None, data=None, order=None, hue_order=None,
:context: close-figs
>>> import seaborn as sns
>>> sns.set_style("darkgrid")
>>> sns.set(style="darkgrid")
>>> tips = sns.load_dataset("tips")
>>> ax = sns.pointplot(x="time", y="total_bill", data=tips)
Expand Down

0 comments on commit 3b20c17

Please sign in to comment.