I have a figure that is composed of two columns. Each column is itself a GridLayout. I am having the problem that on the right end of the figure, the axes labels go over the figure boundary:
How do I fix this? I don’t want to change the figure padding, because the left side is fine. I tried
colgap!(fig.layout, 2, 10.0)
but this doesn’t work as the figure has only 1 gap.
The figure_padding goes into the alignmode = Outside(...) of the parent layout, so you can change it there via fig.layout.alignmode = Outside(l, r, b, t).
More targeted, you could also set ax.alignmode = Mixed(right = Makie.Protrusion(some_value)) only on the axis with the labels hanging out, this would instruct the layout to use a larger protrusion value on the right (it’s zero usually, as the x labels are not included in it for reasons)