LayMeshDocs
中文

Plot Bar

plot-bar.lay
# Minimal complete example: plot.barpage=canvas(size=(100mm,75mm),background="#ffffff")p=plot(size=(86mm,62mm),x=axis(range=(0,4)),y=axis(range=(0,5)))p.bar(positions=[1,2,3],values=[1,4,2],data_width=0.6)page.add(p,offset=(7mm,6mm))

Preview

Background
Plot Bar
Original example
Total —
Details

Not run yet

Measured in this browser; excludes debounce.

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

Reproduce

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