From b14fec3cf9c65f588b104ed054974ad92ac2f339 Mon Sep 17 00:00:00 2001 From: "S.J. Guillot" <58807831+sjg2203@users.noreply.github.com> Date: Fri, 5 Apr 2024 13:37:42 +0200 Subject: [PATCH] Revert "Remove sns.despine (#410)" This reverts commit f4593c5ae898410aa5b46f639a0a44e2979c3a68. --- src/pingouin/plotting.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pingouin/plotting.py b/src/pingouin/plotting.py index a82158bb..dc73d513 100644 --- a/src/pingouin/plotting.py +++ b/src/pingouin/plotting.py @@ -190,6 +190,7 @@ def plot_blandaltman( # Labels ax.set_ylabel(f"{xname} - {yname}") ax.set_xlabel(xlabel) + sns.despine(ax=ax) return ax @@ -651,6 +652,8 @@ def plot_paired( ax.set_xlabel(xlabel) ax.set_ylabel(ylabel) + # Despine and trim + sns.despine(trim=True, ax=ax) return ax @@ -885,6 +888,7 @@ def adjacent_values(vals, q1, q3): ax2.set_xlabel("X quantiles", size=15) ax2.set_ylabel("Y - X quantiles \n differences (a.u.)", size=10) + sns.despine() plt.tight_layout() return fig