I have the following code:
fig, abmstepper = abm_plot(model) ax, hm = heatmap(fig[1,2], model.sugar_capacities; colormap=cgrad(:thermal)) ax.aspect = AxisAspect(1) # equal aspect ratio for heatmap Colorbar(fig[1, 3], hm, width = 10, tellheight=false) fig
whose internal details do not matter and the first line can be replaced by
This code produces this image:
As you can see, the Colorbar is too high with respect to the other plots. I quickly realized that
tellheight doesn’t help here, since of course the Colorbar’s height is decided by the figure available height, not the nearby axis.
How do I make it so that the Colorbar is as high as the axis to its left?