# Lifting observable draws all data from previous steps

**URL:** https://discourse.julialang.org/t/lifting-observable-draws-all-data-from-previous-steps/102565
**Category:** New to Julia
**Tags:** question, plotting, glmakie, observables, agentsjl
**Created:** [August 7, 2023, 2:00pm UTC](https://discourse.julialang.org/t/lifting-observable-draws-all-data-from-previous-steps/102565 "2023-08-07T14:00:33Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ittomsk](https://avatars.discourse-cdn.com/v4/letter/i/a87d85/32.png) [@ittomsk](https://discourse.julialang.org/u/ittomsk)
#### Post date: [August 7, 2023, 2:00pm UTC](https://discourse.julialang.org/t/lifting-observable-draws-all-data-from-previous-steps/102565/1 "2023-08-07T14:00:33Z")

</div>

I’m using that code to draw an object with it’s orientation on top. When orientation marker spins, marker from previous step doesn’t disappear. But I want to draw only orientation from current step. How do I do it?

```julia
adata = [
    :pos,
    :ориентация_объекта_рад,
    ]

fig, ax, abmobs = InteractiveDynamics.abmplot(модель;
    agent_step! = жизнь!, model_step! = dummystep,
    am = '⚪',
    as = размер_маркера,
    adata,
    )

    positions = @lift(Point2f.($(abmobs.adf).pos))
    rotations = @lift($(abmobs.adf).ориентация_объекта_рад)
    scatter!(ax, positions; overdraw = true, rotations = rotations, marker = '↑', markersize = 15, color = :red)
    
GLMakie.display(fig)

```

Here what I expect  
 ![expected](https://global.discourse-cdn.com/julialang/original/3X/7/5/75ee4dda69aeac163dcb8f88054b125742d4b677.png)

What I get after several steps  
 ![after_few_runs](https://global.discourse-cdn.com/julialang/original/3X/4/4/44f0472fd730febefea3086891bf91564bf15924.png)
