NeuroAnalyzer tutorials: Animate

Load data:

using NeuroAnalyzer
using Plots
eeg = load("files/eeg.hdf")
load_locs!(eeg, file_name="files/standard-10-20-cap19-elmiko.ced")
trim!(eeg, seg=(0, 20), remove_epochs=false)

Prepare animation:

ts = 0:0.01:10
anim = @animate for idx in 1:length(ts)
    @info "Generating frame: $idx/$(length(ts))"
    plot_topo(eeg, seg=(ts[idx], ts[idx]+0.1), ch="eeg")
end
gif(anim, "images/anim_fps10.gif", fps = 10)