diff --git a/notebooks/00_QuickStart.ipynb b/notebooks/00_QuickStart.ipynb index 227c06f5..3da44a36 100644 --- a/notebooks/00_QuickStart.ipynb +++ b/notebooks/00_QuickStart.ipynb @@ -1326,7 +1326,7 @@ "source": [ "import matplotlib.pyplot as plt\n", "import seaborn as sns\n", - "sns.set(style='ticks', context='notebook', font_scale=1.2)\n", + "sns.set_theme(style='ticks', context='notebook', font_scale=1.2)\n", "\n", "d = 0.5 # Fixed effect size\n", "n = np.arange(5, 80, 5) # Incrementing sample size\n", diff --git a/notebooks/01_ANOVA.ipynb b/notebooks/01_ANOVA.ipynb index 28030333..6412e8cf 100644 --- a/notebooks/01_ANOVA.ipynb +++ b/notebooks/01_ANOVA.ipynb @@ -923,7 +923,7 @@ } ], "source": [ - "sns.set(context='notebook', font_scale=1.2)\n", + "sns.set_theme(context='notebook', font_scale=1.2)\n", "sns.pointplot(data=df, x='Year', y='Memory', capsize=.1, errorbar='sd')\n", "plt.ylim(1, 7)\n", "_ = plt.title('Memory scores over time')" diff --git a/src/pingouin/plotting.py b/src/pingouin/plotting.py index f4d046a6..1e7014af 100644 --- a/src/pingouin/plotting.py +++ b/src/pingouin/plotting.py @@ -973,7 +973,7 @@ def plot_rm_corr( >>> import pingouin as pg >>> import seaborn as sns >>> df = pg.read_dataset('rm_corr') - >>> sns.set(style='darkgrid', font_scale=1.2) + >>> sns.set_theme(style='darkgrid', font_scale=1.2) >>> g = pg.plot_rm_corr(data=df, x='pH', y='PacO2', ... subject='Subject', legend=True, ... kwargs_facetgrid=dict(height=4.5, aspect=1.5, @@ -1088,7 +1088,7 @@ def plot_circmean( >>> import pingouin as pg >>> import seaborn as sns - >>> sns.set(font_scale=1.5, style='white') + >>> sns.set_theme(font_scale=1.5, style='white') >>> ax = pg.plot_circmean([0.8, 1.5, 3.14, 5.2, 6.1, 2.8, 2.6, 3.2], ... kwargs_markers=dict(marker="None")) """