Skip to content

Commit

Permalink
don't use set_xticks(rotation=...) (for old matplotlib)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromedockes committed Jul 15, 2024
1 parent bd49ea9 commit f5e83f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skrub/_reporting/_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def _serialize(fig):


def _rotate_ticklabels(ax):
ax.set_xticks(ax.get_xticks(), ax.get_xticklabels(), rotation=45, ha="right")
plt.setp(ax.get_xticklabels(), rotation=45, horizontalalignment="right")


def _get_adjusted_fig_size(fig, ax, direction, target_size):
Expand Down

0 comments on commit f5e83f5

Please sign in to comment.