From 514449f914bf1c6e8537999137fcd5a239cf2103 Mon Sep 17 00:00:00 2001 From: Vladimir Mikheev Date: Tue, 5 Dec 2023 16:54:44 +0000 Subject: [PATCH] bug --- src/plot_erp.jl | 1 + test/test_erp.jl | 14 +++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/plot_erp.jl b/src/plot_erp.jl index 3cde7274..2186be89 100644 --- a/src/plot_erp.jl +++ b/src/plot_erp.jl @@ -250,6 +250,7 @@ function eegHeadMatrix(positions, center, radius) center[1] - oldCenter[1] * radF, center[2] - oldCenter[2] * radF, 0, 1, ) +end function topoplotLegend(axis, topomarkersize, topopositions_to_color, allPositions) allPositions = unique(allPositions) diff --git a/test/test_erp.jl b/test/test_erp.jl index 99cf7a3d..31ac29a1 100644 --- a/test/test_erp.jl +++ b/test/test_erp.jl @@ -1,5 +1,5 @@ include("../docs/example_data.jl") -@testset "basic with results" begin +@testset "ERP plot with Results data" begin m = example_data("UnfoldLinearModel") results = coeftable(m) res_effects = effects(Dict(:continuous => -5:0.5:5), m) @@ -9,7 +9,7 @@ include("../docs/example_data.jl") end -@testset "basic with res_effects without colorbar" begin +@testset "ERP plot with res_effects without colorbar" begin m = example_data("UnfoldLinearModel") results = coeftable(m) res_effects = effects(Dict(:continuous => -5:0.5:5), m) @@ -25,7 +25,7 @@ end ) end -@testset "basic with res_effects" begin +@testset "ERP plot with res_effects" begin m = example_data("UnfoldLinearModel") results = coeftable(m) res_effects = effects(Dict(:continuous => -5:0.5:5), m) @@ -42,7 +42,7 @@ end end -@testset "erp plot in GridLayout" begin +@testset "ERP plot in GridLayout" begin f = Figure(resolution = (1200, 1400)) ga = f[1, 1] = GridLayout() @@ -69,7 +69,7 @@ end end -@testset "erp plot with error bands" begin +@testset "ERP plot with error bands" begin m = example_data("UnfoldLinearModel") @@ -79,7 +79,7 @@ end plot_erp(results; :stderror => true) end -@testset "erp plot with error bands in GridLayout" begin +@testset "ERP plot with error bands in GridLayout" begin f = Figure(resolution = (1200, 1400)) ga = f[1, 1] = GridLayout() @@ -93,7 +93,7 @@ end f end -@testset "erp plot with borderless legend" begin +@testset "ERP plot with borderless legend" begin f = Figure(resolution = (1200, 1400)) ga = f[1, 1] = GridLayout()