diff --git a/lightweight_mmm/plot.py b/lightweight_mmm/plot.py index 45f07f3..3803e87 100644 --- a/lightweight_mmm/plot.py +++ b/lightweight_mmm/plot.py @@ -868,9 +868,12 @@ def plot_bars_media_metrics( y=metric.mean(axis=0), yerr=quantile_bounds, fmt="none", - c="black") + c="black", + ) ax.set_xticks(range(len(channel_names))) - ax.set_xticklabels(channel_names, rotation=45) + ax.set_xticklabels( + channel_names, rotation=60, ha="right", rotation_mode="anchor" + ) fig.suptitle( f"Estimated media channel {metric_name}. \n Error bars show " f"{np.round(lower_quantile, 2)} - {np.round(upper_quantile, 2)} "