Skip to content

Commit 1ca371d

Browse files
better plot
1 parent 1c30113 commit 1ca371d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/springdamper.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ using ExampleComponents
22
using OrdinaryDiffEq, ModelingToolkit
33

44
@mtkbuild springdamper = SpringDamper()
5-
prob = ODEProblem(springdamper, [springdamper.x => 1.0], (0.0, 1.0))
5+
prob = ODEProblem(springdamper, [springdamper.x => 2.0], (0.0, 12.0))
66
sol = solve(prob)
77

88
using Plots
9-
plot(sol)
9+
plot(sol)
10+
savefig("plot.png")

0 commit comments

Comments
 (0)