Skip to content

Commit

Permalink
Revert "Remove sns.despine (#410)"
Browse files Browse the repository at this point in the history
This reverts commit f4593c5.
  • Loading branch information
sjg2203 committed Apr 5, 2024
1 parent 9ff8636 commit b14fec3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pingouin/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ def plot_blandaltman(
# Labels
ax.set_ylabel(f"{xname} - {yname}")
ax.set_xlabel(xlabel)
sns.despine(ax=ax)
return ax


Expand Down Expand Up @@ -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


Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b14fec3

Please sign in to comment.