# Makie force update, refresh, or redraw of figure or screen

**URL:** <https://discourse.julialang.org/t/makie-force-update-refresh-or-redraw-of-figure-or-screen/125586>\
**Category:** Visualization\
**Tags:** plotting\
**Created:** [February 5, 2025, 4:56pm UTC](https://discourse.julialang.org/t/makie-force-update-refresh-or-redraw-of-figure-or-screen/125586 "2025-02-05T16:56:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bjarthur](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bjarthur/32/9638_2.png) [@bjarthur](https://discourse.julialang.org/u/bjarthur)\
**Post date:** [February 5, 2025, 4:56pm UTC](https://discourse.julialang.org/t/makie-force-update-refresh-or-redraw-of-figure-or-screen/125586/1 "2025-02-05T16:56:42Z")

</div>

i programmatically update the text of a Label and it is not reliably shown. simple cases work fine, and i’m having trouble coming up with an MWE that shows this bad behavior, but the structure of my production code is sth like the below. is there a function which will forcefully redraw a figure, with all the latest changes?

```julia
using GLMakie

f1 = Figure();
l = Label(f1[1,1], "0")
display(GLMakie.Screen(), f1)

f2 = Figure();
n = Observable(0)
pts = lift(n) do n
    Point2f.(rand(n),rand(n))
end
scatter(f2[1,1], pts)
display(GLMakie.Screen(), f2)

Record(f2, 1:10; format="mp4") do i
    n[] = i
    l.text[] = string(i) # here is the update to Label
    #sleep(0.5) or yield() or notify(viewport(f)) here sometimes work, othertimes not
end

```
