# Can anyone tell me why this figure is appearing in the corner?

**URL:** <https://discourse.julialang.org/t/can-anyone-tell-me-why-this-figure-is-appearing-in-the-corner/135014>\
**Category:** Visualization\
**Tags:** makie, glmakie\
**Created:** [January 13, 2026, 5:05am UTC](https://discourse.julialang.org/t/can-anyone-tell-me-why-this-figure-is-appearing-in-the-corner/135014 "2026-01-13T05:05:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mervyn\_Larrier](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mervyn_larrier/32/37709_2.png) [@Mervyn\_Larrier](https://discourse.julialang.org/u/Mervyn_Larrier)\
**Post date:** [January 13, 2026, 5:05am UTC](https://discourse.julialang.org/t/can-anyone-tell-me-why-this-figure-is-appearing-in-the-corner/135014/1 "2026-01-13T05:05:55Z")

</div>

I’m new to GLMakie; I typically use CairoMakie. While the code runs and the plot does appear, it appears at the bottom left corner of the window, invariably. Can anyone tell me why? It feels like it might be something obvious.

```julia-auto
using LinearAlgebra, GLMakie, Colors, GeometryBasics

GLMakie.activate!()
GLMakie.closeall()

rect_mesh = GeometryBasics.Rect3(GeometryBasics.Point3f(-0.5), GeometryBasics.Vec3f(1))
rect_thin = GeometryBasics.Rect3(GeometryBasics.Point3f(-1), GeometryBasics.Vec3f(2,2,0.25))
rect_Mesh = GeometryBasics.mesh(rect_mesh)
rect_Thin = GeometryBasics.mesh(rect_thin)

color_map = GLMakie.resample_cmap(:Spectral_11, 3*length(rect_Mesh.position))
colors1 = [color_map[i] for i in 1:3*length(rect_Mesh.position)]
colors2 = repeat([RGBA(rand(4)...) for v in rect_Thin.position], 3)

with_theme(theme_dark()) do
    fig = Makie.Figure(size =(600, 600))
    ax = Makie.Axis3(fig, viewmode = :fit)
    Makie.mesh!(ax, rect_thin; color = colors2, shading = NoShading)
    fig
end

```

---

<div class="post-metadata">

**Author:** ![lazarusA](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lazarusa/32/6571_2.png) [@lazarusA](https://discourse.julialang.org/u/lazarusA)\
**Post date:** [January 13, 2026, 5:59am UTC](https://discourse.julialang.org/t/can-anyone-tell-me-why-this-figure-is-appearing-in-the-corner/135014/2 "2026-01-13T05:59:17Z")

</div>

because you need to tell it where to sit, namely, `ax = Makie.Axis3(fig[1,1], viewmode = :fit)`. Note the `fig[1,1],` bit!

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)\
**Post date:** [January 13, 2026, 8:36am UTC](https://discourse.julialang.org/t/can-anyone-tell-me-why-this-figure-is-appearing-in-the-corner/135014/3 "2026-01-13T08:36:43Z")

</div>

> **[Elements are squashed into the lower left corner ​ - Frequently Asked Questions...](https://docs.makie.org/stable/explanations/faq#Elements-are-squashed-into-the-lower-left-corner)**
>
> We assume you are running Julia on the default system image without PackageCompiler. | Create impressive data visualizations with Makie, the plotting ecosystem for the Julia language. Build aesthetic plots with beautiful customizable themes, control...

---

<div class="post-metadata">

**Author:** ![Mervyn\_Larrier](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mervyn_larrier/32/37709_2.png) [@Mervyn\_Larrier](https://discourse.julialang.org/u/Mervyn_Larrier)\
**Post date:** [January 14, 2026, 5:05am UTC](https://discourse.julialang.org/t/can-anyone-tell-me-why-this-figure-is-appearing-in-the-corner/135014/4 "2026-01-14T05:05:08Z")

</div>

Thank you kindly!
