Skip to content

Commit

Permalink
Merge branch 'main' into 8plots
Browse files Browse the repository at this point in the history
  • Loading branch information
vladdez authored Nov 13, 2023
2 parents 05ee4e7 + cc42f28 commit 59918b8
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/plot_topoplotseries.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Multiple miniature topoplots in regular distances
## Arguments:
- `f::Union{GridPosition, 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
Expand Down Expand Up @@ -78,20 +79,17 @@ function plot_topoplotseries!(
flipaxis = false,
label = "Voltage [µV]",
)
else # temporal
if length(ftopo.layout.content) > 2
d = ftopo.layout.content[5].content.content[2].content.scene.plots[1].attributes
else
d = ftopo.layout.content[2].content.content[1].content.scene.plots[1].plots[1].attributes
end
else
# println(fieldnames(typeof((axlist[1]))))
d = axlist[1].scene.plots[1].attributes
Colorbar(
f[:, :][1, length(axlist)+1],
colormap = d.colormap,
colorrange = d.colorrange,
height = 100,
flipaxis = false,
label = "Voltage [µV]",
) # why end is not working????
)
end
end
return f
Expand Down

0 comments on commit 59918b8

Please sign in to comment.