In Plots.jl `heatmap`s, how do I set the colorbar ticks?

Check the keyword colorbar_ticks and the Supported Attributes · Plots.
This is only supported by the pyplot() backend.

However, with any other backend, it is easy to create your own color bar and decorations by treating it as a heatmap in a neighboring subplot.
Check out this post.

1 Like