# Makie.text! in an empty Axis

**URL:** <https://discourse.julialang.org/t/makie-text-in-an-empty-axis/93509>\
**Category:** Data\
**Tags:** makie\
**Created:** [January 25, 2023, 1:32pm UTC](https://discourse.julialang.org/t/makie-text-in-an-empty-axis/93509 "2023-01-25T13:32:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![healyp](https://avatars.discourse-cdn.com/v4/letter/h/67e7ee/32.png) [@healyp](https://discourse.julialang.org/u/healyp)\
**Post date:** [January 25, 2023, 1:32pm UTC](https://discourse.julialang.org/t/makie-text-in-an-empty-axis/93509/1 "2023-01-25T13:32:01Z")

</div>

I would like to generate a matrix of boxplots that is the Cartesian product of two parameters. The attached is almost what I want but I would like to declutter it by factoring out the repeated “|V|=xx” into column headings and the “d=yy” into row titles.

I thought that by adding an extra row and column of empty Axis objects I could write the row and column titles into these but it does not appear to work. Could anybody advise please?

Many thanks.

 ![results-k](https://global.discourse-cdn.com/julialang/original/3X/d/8/d8e0e7984e0732d5954100c46bfd2e8294c2d4a1.png)

---

<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 25, 2023, 2:00pm UTC](https://discourse.julialang.org/t/makie-text-in-an-empty-axis/93509/2 "2023-01-25T14:00:41Z")

</div>

I’ll show you how to do it with `Label` even though you could technically use the upper axes’ titles for the columns:

```julia
f = Figure()
for i in 1:4, j in 1:3
    Axis(f[i, j])
    i == 1 && Label(f[i, j, Top()], "Column $j")
    j == 3 && Label(f[i, j, Right()], "Row $i", rotation = pi/2)
end
f

```

You can add padding like `padding = (5, 0, 0, 0)` for 5 on the left side.

 ![test](https://global.discourse-cdn.com/julialang/original/3X/8/c/8ca188b214d49ccc8a768e7b0d4740263a2d4d4f.png)

You could also make whole rows and columns for the labels, but that will lead to problems when you want to align your grid with other stuff next to it.

---

<div class="post-metadata">

**Author:** ![healyp](https://avatars.discourse-cdn.com/v4/letter/h/67e7ee/32.png) [@healyp](https://discourse.julialang.org/u/healyp)\
**Post date:** [January 26, 2023, 2:23pm UTC](https://discourse.julialang.org/t/makie-text-in-an-empty-axis/93509/3 "2023-01-26T14:23:43Z")

</div>

Thank you. Your suggestions were very helpful.
