# Makie adjust scene limits + scale

**URL:** <https://discourse.julialang.org/t/makie-adjust-scene-limits-scale/27663>\
**Category:** General Usage\
**Tags:** question, plotting\
**Created:** [August 17, 2019, 7:40pm UTC](https://discourse.julialang.org/t/makie-adjust-scene-limits-scale/27663 "2019-08-17T19:40:57Z")\
**Posts on this page:** 3\
**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:** [August 17, 2019, 7:40pm UTC](https://discourse.julialang.org/t/makie-adjust-scene-limits-scale/27663/1 "2019-08-17T19:40:57Z")

</div>

I want to animate a sequence of `lines`, where the x values of each line are fixed, but the y values vary in scale. Something like this:

```julia
julia> using Makie

julia> scene = Scene(); y = Node(randn(10)); lines!(scene, y)

julia> for i in 1:20; sleep(0.1); push!(y, i*randn(10)); end

```

My problem is that the scene limits and aspect ratio are not reasonable for the later iterations.  
I can update the limits with `update_limits!`, but then the aspect ratio is still bad. What is the right way to do this?

---

<div class="post-metadata">

**Author:** ![Janis\_Erdmanis](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/janis_erdmanis/32/10869_2.png) [@Janis\_Erdmanis](https://discourse.julialang.org/u/Janis_Erdmanis)\
**Post date:** [August 17, 2019, 8:31pm UTC](https://discourse.julialang.org/t/makie-adjust-scene-limits-scale/27663/2 "2019-08-17T20:31:54Z")

</div>

Interesting. I would have suggested doing that through `lines` attribute `limit`, however, that does not accept `Observable`. Probably you need to find a way to redraw the axis in each iteration after executing `update_limits!`.

---

<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:** [August 17, 2019, 8:37pm UTC](https://discourse.julialang.org/t/makie-adjust-scene-limits-scale/27663/3 "2019-08-17T20:37:33Z")

</div>

A related question is there a way to just clear the whole scene?
