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

Torkel
Sun, 05 Oct 2025 17:51:12 +0000
Visualization

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?

3 posts - 2 participants