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: docs/src/lib/plotting.md
+47Lines changed: 47 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@ Pages = ["plotting.md"]
8
8
!!! note "Time-domain responses"
9
9
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.
10
10
11
+
11
12
# Plotting functions
12
13
13
14
```@autodocs
@@ -115,3 +116,49 @@ res = step(sysd, 5)
115
116
plot(res, l=(:dash, 4))
116
117
# plot!(stepinfo(step(sysd[1,1], 5))) # adds extra info to the plot
117
118
```
119
+
120
+
121
+
## Makie support
122
+
!!! danger "Experimental"
123
+
124
+
The support for plotting with Makie is currently experimental and at any time subject to breaking changes or removal **not** respecting semantic versioning.
125
+
126
+
ControlSystemsBase provides experimental support for plotting with [Makie.jl](https://docs.makie.org/) through the `CSMakie` module. This support is loaded automatically when you load a Makie backend (GLMakie, CairoMakie, or WGLMakie).
127
+
128
+
### Usage
129
+
130
+
```julia
131
+
using ControlSystemsBase, GLMakie # or CairoMakie, WGLMakie
132
+
133
+
# Create a system
134
+
P =tf([1], [1, 2, 1])
135
+
136
+
# Use CSMakie plotting functions
137
+
CSMakie.bodeplot(P)
138
+
CSMakie.nyquistplot(P)
139
+
CSMakie.pzmap(P)
140
+
# ... and more
141
+
142
+
# Direct plotting of simulation results
143
+
res =step(P, 10)
144
+
plot(res) # Creates a figure with time-domain response
0 commit comments