From 7204c5421118f20cbcbf5daa7945b999c06b4415 Mon Sep 17 00:00:00 2001 From: sarakolding Date: Tue, 21 Mar 2023 11:45:25 +0100 Subject: [PATCH] fix: added max bin creates different shapes --- .../base_artifacts/plots/time_from_first_positive_to_event.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/psycop_model_training/model_eval/base_artifacts/plots/time_from_first_positive_to_event.py b/src/psycop_model_training/model_eval/base_artifacts/plots/time_from_first_positive_to_event.py index bb797e24..ed6a8a92 100644 --- a/src/psycop_model_training/model_eval/base_artifacts/plots/time_from_first_positive_to_event.py +++ b/src/psycop_model_training/model_eval/base_artifacts/plots/time_from_first_positive_to_event.py @@ -86,7 +86,7 @@ def plot_time_from_first_positive_to_event( .reset_index() ) - x_labels = list(bins) + x_labels = list(counts["time_from_first_positive_to_event_binned"]) y_values = counts[0].to_list() plot = plot_basic_chart(