From aa354e36fbeb4c0a1900205d04e9f79500bf2d33 Mon Sep 17 00:00:00 2001 From: Markus Sagen Date: Wed, 18 Oct 2023 08:58:52 +0200 Subject: [PATCH] fix: align xticks in barplot with multiple labels for budget compare plot --- lightweight_mmm/plot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightweight_mmm/plot.py b/lightweight_mmm/plot.py index 3803e87..4690949 100644 --- a/lightweight_mmm/plot.py +++ b/lightweight_mmm/plot.py @@ -971,7 +971,7 @@ def plot_pre_post_budget_allocation_comparison( textcoords="offset points") axes[0].set_xticks(x_axis) - axes[0].set_xticklabels(channel_names, fontsize="medium") + axes[0].set_xticklabels(channel_names, fontsize="medium", rotation=60, ha="right", rotation_mode="anchor") axes[0].legend(fontsize="medium") plots3 = axes[1].bar([