I was wondering if there is any possibility to reverse the ticks in a Colorbar. I.e. instead of counting up 1:4 doing something like 4:-1:1.
This snippet however still has 1 at the bottom and 4 at the top
fig = Figure(size = (100, 400))
cmap = cgrad(to_colormap(:cividis), 4, categorical = true)
Colorbar(
fig[1, 1],
limits = (0.5, 4+.5), ticks = 4:-1:1, nsteps = 4
, colormap = cmap
)
fig
Is there any other โeasyโ way of achieving this reverted axis behavior?