Skip to content

Commit d423648

Browse files
committed
fix docs: forgot to use Align in shown figure
1 parent cf71d17 commit d423648

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/src/index.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,12 @@ Align
114114
```
115115
```@example layouts
116116
g = smallgraph(:cubical)
117-
layout = Spring(Ptype=Float32)
118-
f, ax, p = graphplot(g, layout=layout) # horizontal alignment (zero angle by default)
117+
f, ax, p = graphplot(g, layout=Align(Spring())) # horizontal alignment (zero angle by default)
119118
hidedecorations!(ax); hidespines!(ax); ax.aspect = DataAspect(); f #hide
120119
```
121120

122121
```@example layouts
123-
f, ax, p = graphplot(g, layout=Align(layout, pi/2)) # vertical alignment
122+
f, ax, p = graphplot(g, layout=Align(Spring(), pi/2)) # vertical alignment
124123
hidedecorations!(ax); hidespines!(ax); ax.aspect = DataAspect(); f #hide
125124
```
126125

0 commit comments

Comments
 (0)