45
45
### Example
46
46
``` @example layouts
47
47
g = wheel_graph(10)
48
- layout = SFDP(tol=0.01, C=0.2, K=1)
48
+ layout = SFDP(Ptype=Float32, tol=0.01, C=0.2, K=1)
49
49
f, ax, p = graphplot(g, layout=layout)
50
50
hidedecorations!(ax); hidespines!(ax); ax.aspect = DataAspect(); f
51
51
```
@@ -54,7 +54,7 @@ hidedecorations!(ax); hidespines!(ax); ax.aspect = DataAspect(); f
54
54
``` @example layouts
55
55
iterator = LayoutIterator(layout, g)
56
56
record(f, "sfdp_animation.mp4", iterator; framerate = 10) do pos
57
- p[:node_positions ][] = pos
57
+ p[:node_pos ][] = pos
58
58
autolimits!(ax)
59
59
end
60
60
nothing #hide
@@ -90,15 +90,15 @@ Spring
90
90
### Example
91
91
``` @example layouts
92
92
g = smallgraph(:cubical)
93
- layout = Spring()
93
+ layout = Spring(Ptype=Float32 )
94
94
f, ax, p = graphplot(g, layout=layout)
95
95
hidedecorations!(ax); hidespines!(ax); ax.aspect = DataAspect(); f #hide
96
96
```
97
97
### Iterator Example
98
98
``` @example layouts
99
99
iterator = LayoutIterator(layout, g)
100
100
record(f, "spring_animation.mp4", iterator; framerate = 10) do pos
101
- p[:node_positions ][] = pos
101
+ p[:node_pos ][] = pos
102
102
autolimits!(ax)
103
103
end
104
104
nothing #hide
@@ -112,7 +112,7 @@ Stress
112
112
### Example
113
113
``` @example layouts
114
114
g = complete_graph(10)
115
- layout = Stress()
115
+ layout = Stress(Ptype=Float32 )
116
116
f, ax, p = graphplot(g, layout=layout)
117
117
hidedecorations!(ax); hidespines!(ax); ax.aspect = DataAspect(); f #hide
118
118
```
@@ -121,7 +121,7 @@ hidedecorations!(ax); hidespines!(ax); ax.aspect = DataAspect(); f #hide
121
121
``` @example layouts
122
122
iterator = LayoutIterator(layout, g)
123
123
record(f, "stress_animation.mp4", iterator; framerate = 10) do pos
124
- p[:node_positions ][] = pos
124
+ p[:node_pos ][] = pos
125
125
autolimits!(ax)
126
126
end
127
127
nothing #hide
0 commit comments