From e8020b2c85bd55d6b23d43f7861ad88323750925 Mon Sep 17 00:00:00 2001 From: "behinger (s-ccs 001)" Date: Thu, 1 Dec 2022 15:30:01 +0100 Subject: [PATCH] fix butterfly/ERP fix --- src/plotconfig.jl | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/plotconfig.jl b/src/plotconfig.jl index ff8713b8e..634d03236 100644 --- a/src/plotconfig.jl +++ b/src/plotconfig.jl @@ -308,25 +308,27 @@ function PlotConfig(T::Val{:butterfly}) this.setMappingValues!( topoChannels=(:channels, :channel, :topoChannel, :nothing), ) - return this - end -function PlotConfig(T::Union{Val{:erp},Val{:butterfly}}) - this = PlotConfig() - this.plotType = valType_to_symbol(T) this.setExtraValues!( topoLegend = true, topoPositionToColorFunction = x->posToColorRomaO(x) ) - this.setLayoutValues!( - showLegend = false, - hidespines = (:r, :t) - ) this.setMappingValues!( topoPositions=(:pos, :positions, :position, :topoPositions, :x, :nothing), topoLabels=(:labels, :label, :topoLabels, :sensor, :nothing), ) + return this + end +function PlotConfig(T::Val{:erp}) + this = PlotConfig() + this.plotType = valType_to_symbol(T) + + this.setLayoutValues!( + showLegend = true, + hidespines = (:r, :t) + ) + return this end function PlotConfig(T::Val{:erpimage})