You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -121,4 +121,4 @@ If you want to ask a question, feel free to start a discussion [here](https://gi
121
121
122
122
## See also
123
123
124
-
We acknowledge support of colleagues from [ADNLPModels](https://jso.dev/ADNLPModels.jl/stable) @[Julia Smooth Optimizers](https://jso.dev) and [MadNLP](https://github.com/MadNLP/MadNLP.jl).
124
+
We acknowledge support of colleagues from [ADNLPModels](https://jso.dev/ADNLPModels.jl/stable) @[Julia Smooth Optimizers](https://jso.dev) and [MadNLP](https://github.com/MadNLP/MadNLP.jl).
|[Add a plot](@ref tutorial-plot-add) |`solution_label`|
37
35
38
36
You can plot a solution obtained from the `solve` function, as well as from the flow computed using an optimal control problem and a control law. See, respectively, [Basic Concepts](@ref tutorial-plot-basic) and [From Flow](@ref tutorial-plot-flow) sections for more details.
39
37
38
+
You can [add a plot](@ref tutorial-plot-add) to an existing one, thanks to the `plot!` function.
39
+
40
40
You can also retrieve the state, the costate and the control to create your own plots, see [Custom plot](@ref tutorial-plot-custom) section.
41
41
42
42
## The problem and the solution
@@ -169,7 +169,7 @@ plot(sol_flow)
169
169
If you prefer to get a more compact figure, you can use the `layout` optional keyword argument with `:group` value. It will group the state, costate and control trajectories in one subplot for each.
170
170
171
171
```@example main
172
-
plot(sol; layout=:group, size=(800, 300))
172
+
plot(sol; layout=:group)
173
173
```
174
174
175
175
The default layout value is `:split` which corresponds to the grid of subplots presented above.
@@ -204,8 +204,8 @@ nothing # hide
204
204
We first plot the solution of the first optimal control problem, then, we plot the solution of the second optimal control problem on the same figure, but with dashed lines.
0 commit comments