Skip to content

Commit

Permalink
changing node color def
Browse files Browse the repository at this point in the history
  • Loading branch information
PavanChaggar committed Sep 5, 2024
1 parent d4dd403 commit c86a314
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ext/ConnectomesGraphMakieExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function Connectomes.plot_connectome!(connectome::Connectome;
min_edge_size = 0.0,
max_edge_size = 10.0,
node_weighted = true,
node_color = (:blue, 0.5),
node_color = fill((:blue, 0.5), 83),
node_size = 10.0)

g = connectome.graph
Expand All @@ -64,11 +64,13 @@ function Connectomes.plot_connectome!(connectome::Connectome;
node_width = fill(node_size, nv(g))
end

@assert lenght(node_color) == length(connectome.parc)

graphplot!(g,
edge_width = edge_width,
edge_color = edge_color,
node_size = node_width,
node_color = fill(node_color, nv(g));
node_color = node_color;
layout = _ -> positions)
end

Expand Down

0 comments on commit c86a314

Please sign in to comment.