Skip to content

Commit 802c415

Browse files
committed
docs: saveat=1 to ease the plotting
1 parent a2240f8 commit 802c415

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
@@ -114,8 +114,8 @@ Since the initial voltage of the capacitors was already specified via `v` and th
114114

115115
```@example components
116116
@mtkbuild sys = ChaoticAttractor()
117-
prob = ODEProblem(sys, Pair[], (0, 5e4), saveat = 0.01)
118-
sol = solve(prob)
117+
prob = ODEProblem(sys, Pair[], (0, 5e4))
118+
sol = solve(prob; saveat = 1.0)
119119
120120
plot(sol[sys.capacitor1.v], sol[sys.capacitor2.v], title = "Chaotic Attractor", label = "",
121121
ylabel = "C1 Voltage in V", xlabel = "C2 Voltage in V")

0 commit comments

Comments
 (0)