From f5e83f527fb2277492dbf058449782a556bae352 Mon Sep 17 00:00:00 2001 From: Jerome Dockes Date: Mon, 15 Jul 2024 16:00:28 +0200 Subject: [PATCH] don't use set_xticks(rotation=...) (for old matplotlib) --- skrub/_reporting/_plotting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skrub/_reporting/_plotting.py b/skrub/_reporting/_plotting.py index ca77a2fda..28f49ede5 100644 --- a/skrub/_reporting/_plotting.py +++ b/skrub/_reporting/_plotting.py @@ -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):