Skip to content

Commit

Permalink
Set heatmap yticklabel alignment while rotating
Browse files Browse the repository at this point in the history
Closes #2484
  • Loading branch information
mwaskom committed May 5, 2021
1 parent a41703e commit 8aab749
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions seaborn/matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ def plot(self, ax, cax, kws):
ax.set(xticks=xticks, yticks=yticks)
xtl = ax.set_xticklabels(xticklabels)
ytl = ax.set_yticklabels(yticklabels, rotation="vertical")
plt.setp(ytl, va="center") # GH2484

# Possibly rotate them if they overlap
_draw_figure(ax.figure)
Expand Down

0 comments on commit 8aab749

Please sign in to comment.