LayMeshDocs
中文

Plot Colorbar

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

Preview

Background
Plot Colorbar
Original example
Total —
Details

Not run yet

Measured in this browser; excludes debounce.

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

Reproduce

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