Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bioptim/gui/check_conditioning.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def create_conditioning_plots(ocp):
objectives_hess_func = hessian_objective(variables_vector, all_objectives)

# PLOT CONSTRAINTS
fig_constraints, axis_constraints = plt.subplots(1, 2, num="Check conditioning for constraints")
fig_constraints, axis_constraints = plt.subplots(1, 2, num="Check conditioning for constraints", clear=True)

# Jacobian plot
fake_jacobian = np.zeros((nb_constraints, nb_variables))
Expand Down Expand Up @@ -161,7 +161,7 @@ def create_conditioning_plots(ocp):
pass

# PLOT OBJECTIVES
fig_obj, axis_obj = plt.subplots(1, 1, num="Check conditioning for objectives")
fig_obj, axis_obj = plt.subplots(1, 1, num="Check conditioning for objectives", clear=True)

# Hessian objective plot
fake_hessian_obj = np.zeros((nb_variables, nb_variables))
Expand Down
2 changes: 1 addition & 1 deletion bioptim/gui/ipopt_output_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def create_ipopt_output_plot(ocp, interface):
"""
This function creates the plots for the ipopt output: f, g, inf_pr, inf_du.
"""
ipopt_fig, axs = plt.subplots(3, 1, num="IPOPT output")
ipopt_fig, axs = plt.subplots(3, 1, num="IPOPT output", clear=True)
axs[0].set_ylabel("f", fontweight="bold")
axs[1].set_ylabel("inf_pr", fontweight="bold")
axs[2].set_ylabel("inf_du", fontweight="bold")
Expand Down
Loading