`Plots.jl` colorbar title position

Consider with pyplot

heatmap(1:10, 1:10, rand(10,10); 
  cbar=:top, 
  cbar_title="TITLE", 
  colorbar_titlefontsize=40, 
  colorbar_titlefontcolor=:white)

resulting in
tmp
How can I make the title of the colorbar appear at the top instead at the bottom of the colorbar?

A simple workaround, in case it helps:

using Measures, Plots; pyplot(dpi=100)
heatmap(1:10, 1:10, rand(10,10), cbar=:top, title="TITLE\n",  titlefontsize=40, titlefontcolor=:blue, topmargin=-10mm)
1 Like

Thank you. That works for me!