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
From the points, segments and transform we create a [`SystemStructure(name, set)`](@ref), which can be plotted in 2d to quickly investigate if the model is correct.
67
+
From the points, segments and transform we create a [`SystemStructure(name, set)`](@ref), which can be plotted in 3D to quickly investigate if the model is correct.
@@ -76,9 +76,10 @@ If the system looks good, we can easily model it, by first creating a [`Symbolic
76
76
sam = SymbolicAWEModel(set, sys_struct)
77
77
78
78
init!(sam; remake=false)
79
+
plot(sys_struct, 0.0) # Create initial plot
79
80
for i in1:80
80
-
plot(sam, i/set.sample_freq)
81
81
next_step!(sam)
82
+
plot(sys_struct, i/set.sample_freq) # Update plot
82
83
end
83
84
```
84
85

@@ -99,18 +100,19 @@ using WinchModels
99
100
winches = [Winch(1, set, [1])]
100
101
```
101
102
102
-
The 2d plot of the [`SystemStructure`](@ref) should still look the same, so we don't have to plot that. We can just create the system, and simulate it. We just need to be sure that we call plot with `t=0.0` to reset the plot.
103
+
The plot of the [`SystemStructure`](@ref) should still look the same, so we don't have to plot that. We can just create the system, and simulate it. We call `plot(sys_struct, 0.0)` to create a new plot.
0 commit comments