Help with plotting using record in Makie.jl

Hello everyone,

I was trying to create an animation using the record function in Makie.jl. I am able to successfully create a recording (a mp4 file).

However the image that I am plotting in the animation doesnt seem to update. Throughout the duration of the animation the same image seems to be there.

I have attached an image of my code below for your reference.

Any help would be appreciated. Thanks!

Check this page Animations

You should modify one heatmap, not plot a new one over the old ones in each frame. That’s not very performant.

Also rotl90(rotr90( doesn’t do anything :slight_smile:

Hi again @jules,

Thanks for your response!

I do understand that I need to change the existing image, however I cant figure out how to do it.
The example in the animations page changes the color of the lineplot. However I need to change the entire image.

Also the rotl90(rotr90( was very stupid, thanks for pointing that out!

You need to pass an observable of a matrix into heatmap and update that. Maybe this page helps to understand the concepts even though it doesn’t show this specific action Observables & Interaction

Thanks for directing me to Observables, it was exactly what I needed. Thanks for your help again @jules!