Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
vladdez committed Nov 20, 2024
1 parent ddfe540 commit b3bd967
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 8 deletions.
17 changes: 13 additions & 4 deletions docs/literate/tutorials/topoplot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -79,18 +79,27 @@ begin
visual = (; label_scatter = false),
labels = labs4,
axis = (; xlabel = "", title = "No markers"),
colorbar = (; height = 100,
))
colorbar = (; height = 100,),
)

plot_topoplot!(
f[2, 1],
dat[1:4, 340, 1];
positions = positions[1:4],
visual = (; label_text = true, label_scatter = (markersize = 15, color = "white", strokecolor = "green", strokewidth = 2)),
visual = (;
label_text = true,
label_scatter = (
markersize = 15,
color = "white",
strokecolor = "green",
strokewidth = 2,
),
),
labels = labs4,
axis = (; xlabel = "340 ms", title = "Markers with channel labels"),
mapping = (; labels = labs4),
colorbar = (; height = 100))
colorbar = (; height = 100),
)
f
end

Expand Down
7 changes: 6 additions & 1 deletion docs/literate/tutorials/topoplotseries.jl
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,12 @@ begin
positions = positions[4:7],
labels = labs4,
visual = (;
label_scatter = (markersize = 15, color = "white", strokecolor = "green", strokewidth = 2),
label_scatter = (
markersize = 15,
color = "white",
strokecolor = "green",
strokewidth = 2,
),
label_text = true,
),
)
Expand Down
9 changes: 6 additions & 3 deletions test/test_butterfly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ end
end =#

@testset "butterfly: topoplot channel names" begin
plot_butterfly(df; positions = pos,
topo_attributes = (; label_text = true, label_scatter = (; markersize = 10)))
end
plot_butterfly(
df;
positions = pos,
topo_attributes = (; label_text = true, label_scatter = (; markersize = 10)),
)
end

0 comments on commit b3bd967

Please sign in to comment.