Move "Label" on top of the colorbar using Makie

Hello everyone! I would like to move the label to the top of the Colorbar by using Makie.
Can anyone help me how to do this ?
Thank you so much

using Makie
using GLMakie
fig = Figure()

Create an axis

Axis(fig[1, 1])
Colorbar(fig[1, 2], limits = (-1, 1), colormap = :jet, label = “Label”)

Display the figure

display(fig)

1 Like

You can’t move the label itself but you can do Label(fig[1, 2, Top()], "Label") with maybe some padding = (left, right, bottom, top)

2 Likes

Thank you so much for your help. It works perfectly!
Best regards,