Skip to content

Commit d91f0f2

Browse files
committed
doc: only plot first model output in EMPC example on pendulum
1 parent b53d741 commit d91f0f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/manual/nonlinmpc.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ setpoint is similar:
211211
```@example 1
212212
unset_time_limit_sec(empc.optim) # hide
213213
res2_ry = sim!(empc, N, [180, 0], plant=plant2, x_0=[0, 0], x̂_0=[0, 0, 0])
214-
plot(res2_ry)
214+
plot(res2_ry, ploty=[1])
215215
savefig("plot5_NonLinMPC.svg"); nothing # hide
216216
```
217217

@@ -231,7 +231,7 @@ Also, for a 10° step disturbance:
231231

232232
```@example 1
233233
res2_yd = sim!(empc, N, [180; 0]; plant=plant2, x_0=[π, 0], x̂_0=[π, 0, 0], y_step=[10, 0])
234-
plot(res2_yd)
234+
plot(res2_yd, ploty=[1])
235235
savefig("plot6_NonLinMPC.svg"); nothing # hide
236236
```
237237

0 commit comments

Comments
 (0)