From 9641c38f63804f4f4abe6e5cac02ddddf367a164 Mon Sep 17 00:00:00 2001 From: Daniel Weindl Date: Fri, 19 Sep 2025 22:08:22 +0200 Subject: [PATCH] Fix plot_goodness_of_fit scatter Measurements and simulation were swapped in the scatter plot. The regression line was correct. --- petab/v1/visualize/plot_residuals.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/petab/v1/visualize/plot_residuals.py b/petab/v1/visualize/plot_residuals.py index 230c8605..7bb58418 100644 --- a/petab/v1/visualize/plot_residuals.py +++ b/petab/v1/visualize/plot_residuals.py @@ -184,8 +184,8 @@ def plot_goodness_of_fit( fig.set_layout_engine("tight") ax.scatter( - petab_problem.measurement_df["measurement"], simulations_df["simulation"], + petab_problem.measurement_df["measurement"], c=color, )