# Update Makie plot in a loop

**URL:** <https://discourse.julialang.org/t/update-makie-plot-in-a-loop/56911>\
**Category:** General Usage\
**Tags:** makie\
**Created:** [March 10, 2021, 8:08pm UTC](https://discourse.julialang.org/t/update-makie-plot-in-a-loop/56911 "2021-03-10T20:08:30Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![LaurentPlagne](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/laurentplagne/32/10103_2.png) [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Post date:** [March 10, 2021, 8:54pm UTC](https://discourse.julialang.org/t/update-makie-plot-in-a-loop/56911/3 "2021-03-10T20:54:52Z")

</div>

Is it the kind of interactive plot you are after ?

> [@CuArray + GLMakie](https://discourse.julialang.org/t/cuarray-glmakie/52461/4):
>
> Hi Simon, Here is an example which is unfortunately a bit too long for the 7-lines thread… Anyway, It takes about 5s on my machine to run and show a rather convincing combination of CUDA.jl and Makie.jl. In the plot (can be heatmap or surface), I copy the CuArray zs to a standard Array czs… [toto] using CUDA,GLMakie,AbstractPlotting const T=Float32 const V=CuArray{T,2} function go() CUDA.allowscalar(false) ls,ns,ms,λ,dt,sr,k,nt,two,eight,fr =1.e-2,800,1.e-4,0.1,2.e-7,0.1,5e7,5000,T(…

You can replace the record line by the simple loop if you don’t want to generate a movie.

---

_[View the full topic](https://discourse.julialang.org/t/update-makie-plot-in-a-loop/56911)._
