Heatmap, categorical axes, and aspect_ratio

Source code Author Update time

using Plots
unicodeplots()
xs = [string("x", i) for i = 1:10]
ys = [string("y", i) for i = 1:4]
z = float((1:4) * reshape(1:10, 1, :))
heatmap(xs, ys, z, aspect_ratio = 1)
┌───────────┐ 40 5.31693 │▄▄▄▄▄▄▄▄▄▄▄│ ┌──┐ │▄▄▄▄▄▄▄▄▄▄▄│ │▄▄│ -1.31693 │▄▄▄▄▄▄▄▄▄▄▄│ └──┘ └───────────┘ 1 0 10

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