Heatmap, categorical axes, and aspect_ratio

Source code Author Update time

using Plots
gaston()
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)
Gnuplot Produced by GNUPLOT 5.2 patchlevel 8 gnuplot_plot_1a x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 y1 y2 y3 y4 0 5 10 15 20 25 30 35 40

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