Skip to content

Commit 5d9a416

Browse files
committed
clarifications
1 parent dfbe9d6 commit 5d9a416

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/src/lib/plotting.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Pages = ["plotting.md"]
33
```
44

55
!!! note "Using Plots"
6-
All plotting requires the user to manually load the Plots.jl library, e.g., by calling `using Plots`.
6+
All plotting requires the user to manually load the Plots.jl library, e.g., by calling `using Plots`. See also experimental [Makie support](@ref) below.
77

88
!!! note "Time-domain responses"
99
There are no special functions to plot time-domain results, such as step and impulse responses, instead, simply call `plot` on the result structure (`ControlSystemsBase.SimResult`) returned by [`lsim`](@ref), [`step`](@ref), [`impulse`](@ref) etc.
@@ -85,7 +85,7 @@ pzmap(c2d(tf2, 0.1))
8585
![rlocus](https://github.com/JuliaControl/ControlExamplePlots.jl/blob/master/src/figures/rlocus.png?raw=true)
8686

8787
### Lsim response plot
88-
88+
Simulation results are plotted directly using the `plot` function:
8989
![lsim](https://github.com/JuliaControl/ControlExamplePlots.jl/blob/master/src/figures/lsim.png?raw=true)
9090
```julia
9191
sys = ss([-1 2; 0 1], [1 0; 1 1], [1 0; 0 1], [0.1 0; 0 -0.2])
@@ -114,7 +114,7 @@ sys = [tf1 tf2]
114114
sysd = c2d(ss(sys), 0.01)
115115
res = step(sysd, 5)
116116
plot(res, l=(:dash, 4))
117-
# plot!(stepinfo(step(sysd[1,1], 5))) # adds extra info to the plot
117+
# plot!(stepinfo(step(sysd[1,1], 10))) # adds extra info to the plot
118118
```
119119

120120

@@ -141,7 +141,7 @@ CSMakie.pzmap(P)
141141

142142
# Direct plotting of simulation results
143143
res = step(P, 10)
144-
plot(res) # Creates a figure with time-domain response
144+
plot(res) # Creates a figure with time-domain response (note that this function does not belong to the CSMakie module)
145145

146146
si = stepinfo(res)
147147
plot(si) # Visualizes step response characteristics

0 commit comments

Comments
 (0)