# GLMakie: LScene aspect ratio

**URL:** <https://discourse.julialang.org/t/glmakie-lscene-aspect-ratio/115911>\
**Category:** Visualization\
**Tags:** makie, glmakie\
**Created:** [June 20, 2024, 9:25am UTC](https://discourse.julialang.org/t/glmakie-lscene-aspect-ratio/115911 "2024-06-20T09:25:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fedoroff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fedoroff/32/53209_2.png) [@fedoroff](https://discourse.julialang.org/u/fedoroff)\
**Post date:** [June 20, 2024, 9:25am UTC](https://discourse.julialang.org/t/glmakie-lscene-aspect-ratio/115911/1 "2024-06-20T09:25:52Z")

</div>

How can I change the aspect ration of an `LScene`?  
Previously, I, following the suggestion from [Makie aspect ratio 3D plot](https://discourse.julialang.org/t/makie-aspect-ratio-3d-plot), used the `scale!` function:

```julia
import GLMakie as mak

x = y = range(-10, 10, 101)
z = range(-5, 5, 101)
F = [exp(-(xi^2 + yi^2 + zi^2) / 2^2) for xi=x, yi=y, zi=z]

xr, yr, zr = (x[1],x[end]), (y[1],y[end]), (z[1],z[end])

scale = (1, 1, 2)

fig = mak.Figure()
ax = mak.LScene(fig[1,1])
mak.scale!(ax.scene, scale)
mak.volume!(ax, xr, yr, zr, F)
mak.display(fig)

```

However, after the recent Makie update, it does not work anymore. The two figures below show the result obtained with `scale = (1, 1, 1)` (top) and `scale = (1, 1, 2)` (bottom).  
 ![original](https://global.discourse-cdn.com/julialang/original/3X/8/f/8f37e17dfc80cdec1fd37eeec004694f054a9f2b.png)  
 ![scaled](https://global.discourse-cdn.com/julialang/original/3X/d/e/de5c8eae627a9f9233885d61e6791b4f386cd7c5.png)  
As you can see, now the scaling changes the axes instead of changing the aspect ratio.

---

<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:** [June 21, 2024, 9:33am UTC](https://discourse.julialang.org/t/glmakie-lscene-aspect-ratio/115911/2 "2024-06-21T09:33:37Z")

</div>

That’s a bug caused by the boundingbox changes in 0.21. Would be good to have an issue for this
