@@ -62,22 +62,22 @@ x_style = (legend=:none,)
6262p_style = (legend=:none,)
6363
6464sol_trapeze = solve(ocp; tol=1e-8)
65- plt = plot(sol_trapeze; solution_label ="trapeze", state_style=x_style, costate_style=p_style)
65+ plt = plot(sol_trapeze; label ="trapeze", state_style=x_style, costate_style=p_style)
6666
6767sol_midpoint = solve(ocp, disc_method=:midpoint; tol=1e-8)
68- plot!(plt, sol_midpoint; solution_label ="midpoint", state_style=x_style, costate_style=p_style);
68+ plot!(plt, sol_midpoint; label ="midpoint", state_style=x_style, costate_style=p_style);
6969
7070sol_euler = solve(ocp, disc_method=:euler; tol=1e-8)
71- plot!(plt, sol_euler; solution_label ="euler", state_style=x_style, costate_style=p_style);
71+ plot!(plt, sol_euler; label ="euler", state_style=x_style, costate_style=p_style);
7272
7373sol_euler_imp = solve(ocp, disc_method=:euler_implicit; tol=1e-8)
74- plot!(plt, sol_euler_imp; solution_label ="euler implicit", state_style=x_style, costate_style=p_style);
74+ plot!(plt, sol_euler_imp; label ="euler implicit", state_style=x_style, costate_style=p_style);
7575
7676sol_gl2 = solve(ocp, disc_method=:gauss_legendre_2; tol=1e-8)
77- plot!(plt, sol_gl2; solution_label ="gauss legendre 2", state_style=x_style, costate_style=p_style);
77+ plot!(plt, sol_gl2; label ="gauss legendre 2", state_style=x_style, costate_style=p_style);
7878
7979sol_gl3 = solve(ocp, disc_method=:gauss_legendre_3; tol=1e-8)
80- plot!(plt, sol_gl3; solution_label ="gauss legendre 3", state_style=x_style, costate_style=p_style);
80+ plot!(plt, sol_gl3; label ="gauss legendre 3", state_style=x_style, costate_style=p_style);
8181
8282plot(plt, size=(800, 800))
8383```
0 commit comments