Skip to content

Commit 74279fd

Browse files
committed
bump used GraphMakie, add Spectral plots to docs
1 parent 9160c7e commit 74279fd

File tree

3 files changed

+14
-20
lines changed

3 files changed

+14
-20
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ jobs:
4848
- run: |
4949
julia --project=docs -e '
5050
using Pkg
51-
# FIXME: temp solution to resolve deps
52-
Pkg.add(url="https://github.com/JuliaPlots/GraphMakie.jl", rev="nl0.4")
51+
# XXX: temp solution to resolve deps
52+
Pkg.add(url="https://github.com/JuliaPlots/GraphMakie.jl", rev="f9b8c18")
5353
Pkg.develop(PackageSpec(path=pwd()))
5454
Pkg.instantiate()'
5555
- run: |

docs/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
44
GraphMakie = "1ecd5474-83a3-4783-bb4f-06765db800d2"
55
LightGraphs = "093fc24a-ae57-5d10-9952-331d41423f4d"
66
NetworkLayout = "46757867-2c16-5918-afeb-47bfcb05e46a"
7+
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"

docs/src/index.md

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -145,28 +145,21 @@ hidedecorations!(ax); hidespines!(ax); ax.aspect = DataAspect(); f #hide
145145
SquareGrid
146146
```
147147
```@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
152152
```
153153

154154
## Spectral
155155
```@docs
156156
Spectral
157157
```
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
172165
```

0 commit comments

Comments
 (0)