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
+46-44Lines changed: 46 additions & 44 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,50 +8,6 @@ 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
Additionally, `SimResult` and `StepInfo` types can be plotted directly using Makie's `plot` function.
55
11
56
12
# Plotting functions
57
13
@@ -160,3 +116,49 @@ res = step(sysd, 5)
160
116
plot(res, l=(:dash, 4))
161
117
# plot!(stepinfo(step(sysd[1,1], 5))) # adds extra info to the plot
162
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
Copy file name to clipboardExpand all lines: lib/ControlSystemsBase/src/CSMakie.jl
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,10 @@ CSMakie.nyquistplot(sys)
13
13
```
14
14
15
15
All functions will throw an informative error if called without Makie.jl loaded.
16
+
17
+
!!! danger "Experimental"
18
+
19
+
The support for plotting with Makie is currently experimental and at any time subject to breaking changes or removal **not** respecting semantic versioning.
0 commit comments