Skip to content

Commit

Permalink
bug
Browse files Browse the repository at this point in the history
  • Loading branch information
vladdez committed Dec 5, 2023
1 parent 464b0cc commit 514449f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/plot_erp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
14 changes: 7 additions & 7 deletions test/test_erp.jl
Original file line number Diff line number Diff line change
@@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -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()

Expand All @@ -69,7 +69,7 @@ end
end


@testset "erp plot with error bands" begin
@testset "ERP plot with error bands" begin

m = example_data("UnfoldLinearModel")

Expand All @@ -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()

Expand All @@ -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()

Expand Down

0 comments on commit 514449f

Please sign in to comment.