Skip to content

Commit

Permalink
fixed plots for muscle driven
Browse files Browse the repository at this point in the history
  • Loading branch information
EveCharbie committed Nov 4, 2024
1 parent b7e28ff commit 4522a20
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bioptim/gui/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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] = [
Expand Down

0 comments on commit 4522a20

Please sign in to comment.