LayMeshDocs
中文

Plot Add_Axis

plot-add_axis.lay
# Minimal complete example: plot.add_axispage=canvas(size=(100mm,75mm),background="#ffffff")p=plot(size=(86mm,62mm),x=axis(range=(0,4)),y=axis(range=(0,5)))p.add_axis(name="right_y",side=right,axis=axis(range=(0,10),label="Second scale"))p.line(x=[0,1,2,3],y=[1,2,4,3],y_axis="right_y")page.add(p,offset=(7mm,6mm))

Preview

Background
Plot Add_Axis
Original example
Total —
Details

Not run yet

Measured in this browser; excludes debounce.

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

Reproduce

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