Remove Colorbar ticks

This limitation of the gr() backend doesn’t seem to have been fixed yet.
With the pyplot() backend we have several options, including: colorbar_ticks=false.

Also, the previous suggestion didn’t work for me with gr().

If we cannot unplot it, we can perhaps hide it:

using Plots; gr()
x, y = 0:10, -5:5
p = heatmap(x, y, 10rand(11,11))
for yi in range(extrema(y)..., 20)
    annotate!(maximum(x)+ 1.93, yi, text("██", :white, 30))
end
p

Plots_gr_masking_colorbar_ticks

2 Likes