# Updating Makie plot based on button action

**URL:** https://discourse.julialang.org/t/updating-makie-plot-based-on-button-action/111706
**Category:** Visualization
**Tags:** question, makie, animations
**Created:** [March 16, 2024, 7:12pm UTC](https://discourse.julialang.org/t/updating-makie-plot-based-on-button-action/111706 "2024-03-16T19:12:30Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![BambOoxX](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bambooxx/32/22179_2.png) [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)
#### Post date: [March 16, 2024, 11:03pm UTC](https://discourse.julialang.org/t/updating-makie-plot-based-on-button-action/111706/3 "2024-03-16T23:03:00Z")

</div>

Ah yes, that seems to do the trick. That works well for a limited `for`-loop. Would you know how to properly kill it assuming the `for`-loop is replaced by a `while flag`-loop ? I found [Stop/terminate a (sub)task started with @async - #16 by attdona](https://discourse.julialang.org/t/stop-terminate-a-sub-task-started-with-async/32193/16) but I could not scope things properly.

---

_[View the full topic](https://discourse.julialang.org/t/updating-makie-plot-based-on-button-action/111706)._
