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 = :viridis)
cbar = Colorbar(fig, hmap, label = "value", hight= Relative(3.7/4))
fig[1, 1] = ax
fig[1, 2] = cbar
#save("/results/FigHeatCbarRight.svg", scene, pt_per_unit = 0.7);
#save("./results/FigHeatCbarRight.png", fig, px_per_unit = 2)
fig
┌ Warning: Could not find font serif, using Dejavu Sans └ @ AbstractPlotting /Users/lalonso/.julia/packages/AbstractPlotting/LTrME/src/conversions.jl:847