LayMeshDocs
中文

Plot Heatmap

plot-heatmap.lay
# Minimal complete example: plot.heatmappage=canvas(size=(100mm,75mm),background="#ffffff")p=plot(size=(86mm,62mm),x=axis(range=(0,4)),y=axis(range=(0,5)))p.heatmap(z=[[1,2,3],[2,4,2],[1,3,1]],extent=(0,4,0,5),origin=lower)page.add(p,offset=(7mm,6mm))

Preview

Background
Plot Heatmap
Original example
Total —
Details

Not run yet

Measured in this browser; excludes debounce.

Edits stay on this page
Dependencies
  • examples/manual/plot-heatmap.lay

Reproduce

sh
laymesh validate examples/manual/plot-heatmap.laylaymesh render examples/manual/plot-heatmap.lay -o figure.svglaymesh render examples/manual/plot-heatmap.lay -o figure.pdflaymesh render examples/manual/plot-heatmap.lay -o figure.png --dpi 300