From 860988186d8e81fc49eab53e3b4b786f6bfe6479 Mon Sep 17 00:00:00 2001 From: Guillaume Lemaitre Date: Fri, 3 Jan 2025 23:58:19 +0100 Subject: [PATCH] iter --- examples/model_evaluation/plot_estimator_report.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/model_evaluation/plot_estimator_report.py b/examples/model_evaluation/plot_estimator_report.py index 4d0348a8..12dc5110 100644 --- a/examples/model_evaluation/plot_estimator_report.py +++ b/examples/model_evaluation/plot_estimator_report.py @@ -130,8 +130,11 @@ # # Since we obtain a pandas dataframe, we can also use the plotting interface of # pandas. +import matplotlib.pyplot as plt + ax = metric_report.T.plot.barh() -_ = ax.set_title("Metrics report") +ax.set_title("Metrics report") +plt.tight_layout() # %% #