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
+45Lines changed: 45 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,51 @@ 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
+
## Makie support
12
+
!!! danger "Experimental"
13
+
14
+
The support for plotting with Makie is currently experimental and at any time subject to breaking changes or removal **not** respecting semantic versioning.
15
+
16
+
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).
17
+
18
+
### Usage
19
+
20
+
```julia
21
+
using ControlSystemsBase, GLMakie # or CairoMakie, WGLMakie
22
+
23
+
# Create a system
24
+
P =tf([1], [1, 2, 1])
25
+
26
+
# Use CSMakie plotting functions
27
+
CSMakie.bodeplot(P)
28
+
CSMakie.nyquistplot(P)
29
+
CSMakie.pzmap(P)
30
+
# ... and more
31
+
32
+
# Direct plotting of simulation results
33
+
res =step(P, 10)
34
+
plot(res) # Creates a figure with time-domain response
0 commit comments