How do I put the heatmap colorbar at the top of the plot?

using the Plots package.

I looked here: Cannot change colorbar position, which does suggest that

heatmap(rand(5,5); cb=:top)

should work, however, it does not. Might be that it requires the pgfplot backend, but seems like osmething that might be possible using the default one?

It actually suggests that it should work for the pyplot() and pgfplotsx() backends, only.

1 Like

Thanks! I was hoping by now it might have been available generally.