I did something similar here: Beautiful Makie
with
function posFig(ax, x; yoff=100, ylow = 15)
o = ax.scene.viewport[].origin - Point2f(0, yoff)
return Makie.project(ax.scene, Point2f(x, ylow)) + o
end
maybe you will need to do some minor changes.