# Align ylabels in scattermatrix

**URL:** <https://discourse.julialang.org/t/align-ylabels-in-scattermatrix/79787>\
**Category:** Visualization\
**Tags:** makie\
**Created:** [April 21, 2022, 2:09pm UTC](https://discourse.julialang.org/t/align-ylabels-in-scattermatrix/79787 "2022-04-21T14:09:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheLateKronos](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thelatekronos/32/12824_2.png) [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Post date:** [April 21, 2022, 2:09pm UTC](https://discourse.julialang.org/t/align-ylabels-in-scattermatrix/79787/1 "2022-04-21T14:09:26Z")

</div>

I have the following plot:

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

If I change the `ylabelpadding`, I move all ylabels by the same amount. Is there a way to set the ylabelpadding such that the ylabels are aligned?

(I wish to do the same for the xlabels, but lets focus on the ylabels.)

---

<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:** [April 21, 2022, 5:27pm UTC](https://discourse.julialang.org/t/align-ylabels-in-scattermatrix/79787/2 "2022-04-21T17:27:42Z")

</div>

You have to set the same `yticklabelspace` for all of them, to be precise you should set all of them to the maximum ticklabel width among them. There should be a function `tight_ticklabels` or something like that, which should set the attribute to the current label width. Then you can read it out and determine the maximum, then set that.
