# Makie update multiple arguments simultaneously

**URL:** https://discourse.julialang.org/t/makie-update-multiple-arguments-simultaneously/22200
**Category:** General Usage
**Created:** [March 22, 2019, 2:39pm UTC](https://discourse.julialang.org/t/makie-update-multiple-arguments-simultaneously/22200 "2019-03-22T14:39:10Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jw3126](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jw3126/32/3086_2.png) [@jw3126](https://discourse.julialang.org/u/jw3126)
#### Post date: [March 22, 2019, 2:39pm UTC](https://discourse.julialang.org/t/makie-update-multiple-arguments-simultaneously/22200/1 "2019-03-22T14:39:10Z")

</div>

I want to plot `lines`, which vary over time. I tried the following code:

```julia
using Makie

len = Node(10)
sx = lift(randn, len)
sy = lift(randn, len)
p = Scene()
lines!(p, sx, sy)
display(p)
for i in 10:20
    sleep(0.1)
    push!(len, i)
end

```

```julia
DimensionMismatch("arrays could not be broadcast to a common size")
...

```

I guess the problem is, that when observables are updated, there is a short moment, where `sx` has already the new length, while `sy`is still has old length. How to solve this?

---

<div class="post-metadata">

### Author: ![asinghvi17](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/asinghvi17/32/8272_2.png) [@asinghvi17](https://discourse.julialang.org/u/asinghvi17)
#### Post date: [April 13, 2019, 4:17pm UTC](https://discourse.julialang.org/t/makie-update-multiple-arguments-simultaneously/22200/2 "2019-04-13T16:17:42Z")

</div>

You could try using an array of Points, where you push to or pop from the Array itself? Then pass a single Array into `lines!`
