Skip to content

Commit

Permalink
Update plot_topoplotseries.jl
Browse files Browse the repository at this point in the history
code patches accidently deleted during git merge
- extension of attributes for colorbar
  • Loading branch information
vladdez authored Nov 13, 2023
1 parent d9e56b5 commit e811673
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/plot_topoplotseries.jl
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"""
plot_topoplotseries!(f::Union{GridPosition, Figure}, plotData::DataFrame, Δbin::Real; kwargs...)
plot_topoplotseries!(f::Union{GridPosition, GridLayout, Figure}, plotData::DataFrame, Δbin::Real; kwargs...)
plot_topoplotseries!(plotData::DataFrame, Δbin::Real; kwargs...)
Multiple miniature topoplots in regular distances
## Arguments:
- `f::Union{GridPosition, Figure}`: Figure or GridPosition that the plot should be drawn into
- `f::Union{GridPosition, GridLayout, Figure}`: Figure or GridPosition that the plot should be drawn into
- `plotData::DataFrame`: DataFrame with data, needs a `time` column
- `Δbin::Real`: A number for how large one bin should be. Δbin is in units of the `plotData.time` column
- `combinefun` (default `mean`) can be used to specify how the samples within `Δbin` are combined.
Expand Down Expand Up @@ -75,9 +75,10 @@ function plot_topoplotseries!(
f[1, end+1],
colormap = d.colormap,
colorrange = d.colorrange,
height = 100,
flipaxis = false,
label = "Voltage [µV]",
height = config.colorbar.height,
flipaxis = config.colorbar.flipaxis,
labelrotation = config.colorbar.labelrotation,
label = config.colorbar.label,
)
else
# println(fieldnames(typeof((axlist[1]))))
Expand All @@ -86,9 +87,10 @@ function plot_topoplotseries!(
f[:, :][1, length(axlist)+1],
colormap = d.colormap,
colorrange = d.colorrange,
height = 100,
flipaxis = false,
label = "Voltage [µV]",
height = config.colorbar.height,
flipaxis = config.colorbar.flipaxis,
labelrotation = config.colorbar.labelrotation,
label = config.colorbar.label,
)
end
end
Expand Down

0 comments on commit e811673

Please sign in to comment.