# Problem with observables and animations

**URL:** https://discourse.julialang.org/t/problem-with-observables-and-animations/112731
**Category:** Visualization
**Tags:** question, plotting, makie, observables
**Created:** [April 9, 2024, 2:09pm UTC](https://discourse.julialang.org/t/problem-with-observables-and-animations/112731 "2024-04-09T14:09:22Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![oddsen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oddsen/32/208238_2.png) [@oddsen](https://discourse.julialang.org/u/oddsen)
#### Post date: [April 9, 2024, 2:09pm UTC](https://discourse.julialang.org/t/problem-with-observables-and-animations/112731/1 "2024-04-09T14:09:22Z")

</div>

Hi, Im trying to animate something with points

 ![image](https://global.discourse-cdn.com/julialang/original/3X/4/d/4d9eafb0a413ab935be26e8684553e72c5c43b88.png)

In this code, it is supposed to show points moving for each iteration. The problem is that the points from the previous iteration aren’t being removed, resulting in an accumulation of points.

Thanks in advance 😉

---

<div class="post-metadata">

### Author: ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)
#### Post date: [April 9, 2024, 2:39pm UTC](https://discourse.julialang.org/t/problem-with-observables-and-animations/112731/2 "2024-04-09T14:39:32Z")

</div>

You’re adding a scatter each frame, I’d take a look at the basic tutorial in the docs, and the page about animations

---

<div class="post-metadata">

### Author: ![oddsen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oddsen/32/208238_2.png) [@oddsen](https://discourse.julialang.org/u/oddsen)
#### Post date: [April 9, 2024, 2:45pm UTC](https://discourse.julialang.org/t/problem-with-observables-and-animations/112731/3 "2024-04-09T14:45:45Z")

</div>

il try that, thanks for the tip
