Hi,
I am trying to label some plots containing images, but somehow I fail to have a label on top of an image. Here is a minimal working example :
using GLMakie, FileIO
img = load(assetpath("cow.png"))
f = Figure()
image(f[1, 1], img, axis = (title = "Default",))
Box(f[1,1], halign=:left, valign=:top, tellwidth=false, tellheight=false, color=:white, width=35, height=30)
Label(f[1,1], "(a)", padding=(5,5,0,0), halign=:left, valign=:top, tellwidth=false, tellheight=false, textsize=20)
f
This gives the following result :
I saw in the documentation that for CairoMakie it’s recommended to play with translate!
, but you can’t translate!
an Label
, so I’m a bit stuck here.
Thanks for your help !