Skip to content

Commit

Permalink
Merge pull request #33 from unfoldtoolbox/fixERPConfig
Browse files Browse the repository at this point in the history
Fix ERP Config (was mixed with butterfly)
  • Loading branch information
behinger authored Dec 1, 2022
2 parents b732433 + e8020b2 commit cd50649
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/plotconfig.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit cd50649

Please sign in to comment.