This will need some better integration, but this works:
using Makie
theplot = lines(randn(10))
pos = lift(pixelarea(theplot)) do area
x = widths(area)[1] ./ 2
Vec2f0(x, 10) # offset 10px, to give it some space
end
title = text(
"my random numbers", align = (:center, :bottom),
position = pos, camera = campixel!, raw = true, textsize = 40, # in pixel,
)
hbox(theplot, title)
Could probably be put in a
title function…
