Skip to content

Commit

Permalink
Added standard plots to the Betts example.
Browse files Browse the repository at this point in the history
  • Loading branch information
moorepants committed Jul 5, 2024
1 parent 7ca929d commit e52e320
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions examples-gallery/plot_betts2003.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ def obj_grad(free):

plt.tight_layout()

# %%
fig_y2, axes_y2 = plt.subplots(3, 1)

axes_y2[0].plot(time, y2_m, '.k',
Expand All @@ -135,4 +136,10 @@ def obj_grad(free):

plt.tight_layout()

# %%
prob.plot_constraint_violations(solution)

# %%
prob.plot_trajectories(solution)

plt.show()

0 comments on commit e52e320

Please sign in to comment.