using CairoMakie, Random
include("makieTheme1.jl") # don't forget to include the theme.
Random.seed!(123)
fig = Figure(resolution = (500, 400), font =:serif)
ax = Axis(fig, aspect = 1,xlabel = "x", ylabel = "y", xgridvisible = false, ygridvisible = false)
hmap = heatmap!(rand(10,20), colormap = :thermal)
cbar = Colorbar(fig, hmap, label = "value", labelpadding = -5, flipaxisposition= false,
ticklabelpad = 30) # something changed in the last release, now the label is not right.
fig[1, 1] = cbar
fig[1, 2] = ax
#save("/results/FigHeatCbarLeft.svg", scene, pt_per_unit = 0.7);
#save("./results/FigHeatCbarLeft.png", fig, px_per_unit = 2)
fig