Skip to content

Commit a2240f8

Browse files
committed
docs(fix): index capacitors of the ChaoticAttractor sys
1 parent ad27b80 commit a2240f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/tutorials/custom_component.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,11 @@ Since the initial voltage of the capacitors was already specified via `v` and th
117117
prob = ODEProblem(sys, Pair[], (0, 5e4), saveat = 0.01)
118118
sol = solve(prob)
119119
120-
plot(sol[capacitor1.v], sol[capacitor2.v], title = "Chaotic Attractor", label = "",
120+
plot(sol[sys.capacitor1.v], sol[sys.capacitor2.v], title = "Chaotic Attractor", label = "",
121121
ylabel = "C1 Voltage in V", xlabel = "C2 Voltage in V")
122122
```
123123

124124
```@example components
125-
plot(sol; idxs = [capacitor1.v, capacitor2.v, inductor.i],
125+
plot(sol; idxs = [sys.capacitor1.v, sys.capacitor2.v, sys.inductor.i],
126126
labels = ["C1 Voltage in V" "C2 Voltage in V" "Inductor Current in A"])
127127
```

0 commit comments

Comments
 (0)