Hello,
I highly appreciate it if anybody helps me. I want to generate an animation using GLMakie. It seems the previous frames remain in the video and frames are not updated.
Any help would be appreciated.
using GLMakie
using MAT
file = matopen(“sample_vrtx_1.mat”)
vrtx=read(file, “vrtx”)
scene=contour(vrtx[1,:,:,:],alpha=0.2,colorrange=[-7,7],colormap=:balance,levels=[-7,7])
record(scene, “kir.mp4”) do io
for i=1:100
dat=vrtx[i,:,:,:]
scene=contour!(dat,alpha=0.2,colorrange=[-7,7],colormap=:balance,levels=[-7,7])
recordframe!(io)
end
end