With the following code
CairoMakie.activate!()
set_theme!()
set_theme!(
Axis = (
xtickalign = 1,
ytickalign = 1,
xminortickalign = 1,
yminortickalign = 1,
xscale = log10,
yscale = log10,
xticksmirrored = true,
yticksmirrored = true,
xminorticksvisible = true,
yminorticksvisible = true,
xminorticks = IntervalsBetween(9),
yminorticks = IntervalsBetween(9)
)
)
fig = Figure()
ax1 = Axis(fig[1,1])
ax2 = Axis(fig[2,1])
rowgap!(fig.layout, Relative(0.01))
fig
I get the following figure:
Notice the upper xticks are detached from the axis as I adjust the row spacing using rowgap!
. Basically I want to minimize the spacing between the two axes. How to use rowgap!
properly so that the upper ticks stay with the axes? Or what’s the best way to adjust the margins?