Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error if layout returns Vector{Vector{T}} #33

Closed
hexaeder opened this issue Sep 22, 2021 · 0 comments · Fixed by #60
Closed

error if layout returns Vector{Vector{T}} #33

hexaeder opened this issue Sep 22, 2021 · 0 comments · Fixed by #60

Comments

@hexaeder
Copy link
Collaborator

using Pkg
Pkg.activate(temp=true)
Pkg.add("GLMakie")
Pkg.add("GraphMakie")
Pkg.add("LightGraphs")

using GLMakie
using GraphMakie
using LightGraphs

g = complete_graph(3)
pos1 = [(0,0),
        (1,1),
        (0,1)]

pos2 = [[0,0],
        [1,1],
        [0,1]]
 
graphplot(g; layout=(x)->pos1) #works
graphplot(g; layout=(x)->pos2) #conversion to Point2 fails
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant