From 4522a20a2169a3ec2890c205634cb2300d6db49d Mon Sep 17 00:00:00 2001 From: Charbie Date: Mon, 4 Nov 2024 11:21:45 -0500 Subject: [PATCH] fixed plots for muscle driven --- bioptim/gui/plot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bioptim/gui/plot.py b/bioptim/gui/plot.py index 55866e82c..a967b511c 100644 --- a/bioptim/gui/plot.py +++ b/bioptim/gui/plot.py @@ -392,9 +392,9 @@ def legend_without_duplicate_labels(ax): axes = self._add_new_axis(variable, nb_subplots, n_rows, n_cols) self.axes[variable] = [nlp.plot[variable], axes] - if not y_min_all[y_range_var_idx]: - y_min_all[y_range_var_idx] = [np.inf] * nb_subplots - y_max_all[y_range_var_idx] = [-np.inf] * nb_subplots + if not y_min_all[y_range_var_idx]: + y_min_all[y_range_var_idx] = [np.inf] * nb_subplots + y_max_all[y_range_var_idx] = [-np.inf] * nb_subplots if variable not in self.custom_plots: self.custom_plots[variable] = [