# How to add labels to grid of tricontourf! in GLMakie

**URL:** <https://discourse.julialang.org/t/how-to-add-labels-to-grid-of-tricontourf-in-glmakie/135962>\
**Category:** General Usage\
**Tags:** question, makie, glmakie\
**Created:** [March 2, 2026, 5:11pm UTC](https://discourse.julialang.org/t/how-to-add-labels-to-grid-of-tricontourf-in-glmakie/135962 "2026-03-02T17:11:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christopher\_Fisher](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christopher_fisher/32/26132_2.png) [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Post date:** [March 2, 2026, 5:11pm UTC](https://discourse.julialang.org/t/how-to-add-labels-to-grid-of-tricontourf-in-glmakie/135962/1 "2026-03-02T17:11:45Z")

</div>

I am trying to add row and column labels to a grid of plots below. I am trying to adapt the solution [here](https://discourse.julialang.org/t/grid-plot-and-label-with-cairomakie/133034/3) for my use case, but the plots are too small relative to the entire figure.

```julia-auto
using GLMakie

x = randn(50)
y = randn(50)
z = x .* y

fig = Figure(backgroundcolor = :white)

for i ∈ 1:3
    Label(fig[i, 0], "row $i", color=:black, halign=:right, tellwidth=false)
    Label(fig[0, i], "column $i", color=:black, halign=:center, tellwidth=false)
end

for c ∈ 1:3, r ∈ 1:3
    ax = Axis(fig[r, c], aspect = DataAspect())
    tricontourf!(ax, x, y, z)
end
colgap!(fig.layout, 0)
rowgap!(fig.layout, 0)
display(fig)

```

When I remove the first loop for the labels, the subplots are the correct size. I am probably making a silly mistake, but I cannot figure out what it is.

---

<div class="post-metadata">

**Author:** ![ederag](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ederag/32/4106_2.png) [@ederag](https://discourse.julialang.org/u/ederag)\
**Post date:** [March 2, 2026, 6:07pm UTC](https://discourse.julialang.org/t/how-to-add-labels-to-grid-of-tricontourf-in-glmakie/135962/2 "2026-03-02T18:07:21Z")

</div>

The code was not executable (x was not defined).  
To be sure to provide a working example, it is best to paste the code into a fresh julia session.

* * *

The “row $i” labels should have `tellheight = false`, rather than `tellwidth`.

---

<div class="post-metadata">

**Author:** ![Christopher\_Fisher](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christopher_fisher/32/26132_2.png) [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Post date:** [March 2, 2026, 6:32pm UTC](https://discourse.julialang.org/t/how-to-add-labels-to-grid-of-tricontourf-in-glmakie/135962/3 "2026-03-02T18:32:01Z")

</div>

Sorry about that. x,y and z where in my global scope but did not make it into example. I corrected that above.

Ugh. It was a silly mistake. Using ` Label(fig[i, 0], "row $i", color=:black, halign=:right, tellheight=false)` fixed the problem. Thanks for your help!
