# Elongated scene

**URL:** <https://discourse.julialang.org/t/elongated-scene/95875>\
**Category:** Visualization\
**Tags:** question, makie, glmakie\
**Created:** [March 10, 2023, 5:05pm UTC](https://discourse.julialang.org/t/elongated-scene/95875 "2023-03-10T17:05:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergey\_Novak](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sergey_novak/32/37716_2.png) [@Sergey\_Novak](https://discourse.julialang.org/u/Sergey_Novak)\
**Post date:** [March 10, 2023, 5:05pm UTC](https://discourse.julialang.org/t/elongated-scene/95875/1 "2023-03-10T17:05:15Z")

</div>

Why i have elongated scene with code

```julia
ts, tf = 1, 9000000
idx, idy, idz = 2, 1, 3
xl, yl, zl = labels3d(idx,idy, idz)
GLMakie.activate!()
f = Figure(resolution = (1200, 900))
ax = LScene(f[1, 1])

lines!(tr[ts:tf, idx], tr[ts:tf, idy], tr[ts:tf, idz], linewidth = 1.0, color = :green)
#lines!(tr1[ts:tf, idx], tr1[ts:tf, idy], tr1[ts:tf, idz], linewidth = 0.5, color = :blue)

scatter!(fp[1][idx], fp[1][idy], fp[1][idz], markersize = 10, color = :red)
display(f)

```

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

---

<div class="post-metadata">

**Author:** ![ffreyer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ffreyer/32/21569_2.png) [@ffreyer](https://discourse.julialang.org/u/ffreyer)\
**Post date:** [March 11, 2023, 4:39pm UTC](https://discourse.julialang.org/t/elongated-scene/95875/2 "2023-03-11T16:39:16Z")

</div>

Because LScene doesn’t scale your data to fit. If you plot a `Rect3f(Point3f(0), Vec3f(1, 1000, 1000))` for example, you’ll get a very thin board, not a square-ish shape.  
If you want your data to be scaled to fit you can either use `Axis3` or try `scale!(ax.scene, 1, 100, 100)` with whatever parameters make sense in your case.

---

<div class="post-metadata">

**Author:** ![Sergey\_Novak](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sergey_novak/32/37716_2.png) [@Sergey\_Novak](https://discourse.julialang.org/u/Sergey_Novak)\
**Post date:** [March 13, 2023, 6:01am UTC](https://discourse.julialang.org/t/elongated-scene/95875/3 "2023-03-13T06:01:00Z")

</div>

Thank you. I use `LScene` to be able to zoom. `Axis3` unfortunately does not do it.
