Skip to content

Commit 9160c7e

Browse files
committed
update square grid example
1 parent 84a99ec commit 9160c7e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/src/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ hidedecorations!(ax); hidespines!(ax); ax.aspect = DataAspect(); f #hide
145145
SquareGrid
146146
```
147147
```@example layouts
148-
g = path_graph(21)
149-
layout = SquareGrid(skip=[(1,2), (3,4)])
150-
f, ax, p = graphplot(g, layout=layout, nlabels=repr.(1:21), nlabels_textsize=15)
148+
g = Grid((8,4))
149+
layout = SquareGrid(cols=8)
150+
f, ax, p = graphplot(g, layout=layout, nlabels=repr.(1:nv(g)), nlabels_textsize=15)
151151
hidedecorations!(ax); hidespines!(ax); ax.aspect = DataAspect(); f #hide
152152
```
153153

0 commit comments

Comments
 (0)