Heatmap colorbar ticks

Source code Author Update time

using Plots
unicodeplots()
using PlotsBase.Commons
plot(heatmap(rand(10, 10); colorbar_ticks = [0.2, 0.5, 0.8], colorbar_tickfontsize = 10, right_margin = 8mm, title = "ticks"), heatmap(rand(10, 10); colorbar_ticks = ([0.2, 0.5, 0.8], ["low", "mid", "high"]), colorbar_tickfontsize = 10, right_margin = 14mm, title = "labels"), layout = (1, 2), size = (900, 500))

This page was generated using DemoCards.jl and Literate.jl.