@@ -145,28 +145,21 @@ hidedecorations!(ax); hidespines!(ax); ax.aspect = DataAspect(); f #hide
145
145
SquareGrid
146
146
```
147
147
``` @example layouts
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 )
151
- hidedecorations!(ax); hidespines!(ax); ax.aspect = DataAspect(); f #hide
148
+ g = Grid((12 ,4))
149
+ layout = SquareGrid(cols=12 )
150
+ f, ax, p = graphplot(g, layout=layout, nlabels=repr.(1:nv(g)), nlabels_textsize=10, nlabels_distance=5 )
151
+ ylims!(-4.5,.5); hidedecorations!(ax); hidespines!(ax); ax.aspect = DataAspect(); f #hide
152
152
```
153
153
154
154
## Spectral
155
155
``` @docs
156
156
Spectral
157
157
```
158
- Spectral needs 3d which isn't ready yet on the GraphMakie side.
159
- ```
160
- using JSServe
161
- Page(exportable=true, offline=true)
162
- using WGLMakie #hide
163
- WGLMakie.activate!() # hide
164
- set_theme!(resolution=(800, 400)) # hide
165
- scatter([1,2,3], [1,2,3])
166
- ```
167
- ```
168
- g = smallgraph(:petersen)
169
- layout = Shell(nlist=[6:10,])
170
- f, ax, p = graphplot(g, layout=layout)
171
- hidedecorations!(ax); hidespines!(ax); ax.aspect = DataAspect(); f #hide
158
+ ``` @example layouts
159
+ set_theme!(resolution=(800, 800)) #hide
160
+ using Random; Random.seed!(5) # hide
161
+ g = watts_strogatz(30, 5, 1)
162
+ layout = Spectral()
163
+ f, ax, p = graphplot(g, layout=layout, node_size=5, edge_width=1)
164
+ f #hide
172
165
```
0 commit comments