Skip to content

Commit

Permalink
small doc fix, fix parrplot mentions
Browse files Browse the repository at this point in the history
  • Loading branch information
behinger committed Nov 26, 2023
1 parent 620c155 commit 4295c47
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 87 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
.vscode/
/test/Manifest.toml
/docs/Manifest.toml

/docs/.CondaPkg
/Manifest.toml
/docs/build/
/docs/src/generated
2 changes: 1 addition & 1 deletion docs/literate/plot_results_styling.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ results = coeftable(m); nothing
# # Styling your plot
# ## Mapping's
# everything you can put in a mapping(...) AoG group can be modified, for instance:
plot_results(results,linestyle=:coefname)
plot_results(results,mapping=(;linestyle=:coefname))

# ## Adding P-values
# You can provide a dataframe with columns (must): `:from`,`:to`,future versions might allow a `:pvalue` column
Expand Down
46 changes: 0 additions & 46 deletions docs/literate/reference/positions.md

This file was deleted.

3 changes: 1 addition & 2 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,9 @@ makedocs(;
],
"How To" => [
"Butterfly Colormap" => "how_to/position2color.md",
"Fix Parallel Coordinates Plot" => "how_to/fix_pcp.md",
"Hide Axis Spines and Decorations" => "how_to/hide_deco.md",
"Include multiple Visualizations in one Figure" => "how_to/mult_vis_in_fig.md",
"Show out of Bounds Label" => "how_to/show_oob_labels.md",
"Designmatrix: Show out of Bounds Label" => "how_to/show_oob_labels.md",
],
"Reference" => [
"Convert 3D positions / montages to 2D layouts" => "generated/reference/positions.md",
Expand Down
33 changes: 0 additions & 33 deletions docs/src/how_to/fix_pcp.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/src/how_to/mult_vis_in_fig.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ plot_erp!(f[2, 4:5], res_effects; categorical_color=false, categorical_group=tru
legend=(; nbanks=2),
layout=(; show_legend=true, legend_position=:right))
plot_parallelcoordinates!(f[3, 2:3], uf_5chan, [1, 2, 3, 4, 5]; mapping=(; color=:coefname),
plot_parallelcoordinates(f[3, 2:3], uf_5chan; mapping=(; color=:coefname),
layout=(; legend_position=:bottom))
plot_erpimage!(f[1, 4:5], times, d_singletrial)
Expand Down
6 changes: 3 additions & 3 deletions test/test_complexplots.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
layout = (; use_colorbar=true))
plot_erpgrid!(ge, data[:, :, 1], positions)
plot_erpimage!(gf, times, d_singletrial)
plot_parallelcoordinates!(gh, uf_5chan, [1, 2, 3, 4, 5];
plot_parallelcoordinates(gh, uf_5chan;
mapping=(; color=:coefname), layout=(; legend_position=:bottom), legend=(; tellwidth =false))

for (label, layout) in zip(["A", "B", "C", "D", "E", "F", "G", "H"], [ga, gb, gc, gd, ge, gf, gg, gh])
Expand Down Expand Up @@ -88,7 +88,7 @@ end
times = -0.099609375:0.001953125:1.0
plot_erpimage!(f[3, 2], times, d_singletrial)

plot_parallelcoordinates!(f[4, 2], uf_5chan, [1, 2, 3, 4, 5]; mapping=(; color=:coefname),
plot_parallelcoordinates(f[4, 2], uf_5chan; mapping=(; color=:coefname),
layout=(; legend_position=:bottom), legend=(; tellwidth =false))

for (label, layout) in zip(["A", "B", "C", "D", "E", "F", "G", "H"],
Expand Down Expand Up @@ -142,7 +142,7 @@ end
legend=(; nbanks=2),
layout=(; show_legend=true, legend_position=:right))

plot_parallelcoordinates!(f[3, 2:3], uf_5chan, [1, 2, 3, 4, 5]; mapping=(; color=:coefname), layout=(; legend_position=:bottom))
plot_parallelcoordinates(f[3, 2:3], uf_5chan; mapping=(; color=:coefname), layout=(; legend_position=:bottom))

plot_erpimage!(f[1, 4:5], times, d_singletrial)
plot_circulareegtopoplot!(f[3:4, 4:5], d_topo[in.(d_topo.time, Ref(-0.3:0.1:0.5)), :];
Expand Down

0 comments on commit 4295c47

Please sign in to comment.