LayMeshDocs
中文

Publication

publication.lay
# Each data rectangle is explicitly 64 x 45 mm. Placement uses data-area anchors.# Changing ticks, label sizes or legends never aligns or resizes the other panel.page = canvas(size=(190 mm, 95 mm), background="#ffffff")style = plot_style(font_family="DejaVu Sans", font_size=8 pt,                   tick_font_size=7 pt, label_font_size=9 pt,                   grid_color="#d0d0d0", grid_line_width=0.3 pt, grid_line_dash=[1 pt, 2 pt]) left = plot(size=(87 mm, 82 mm), plot_area=box(offset=(17 mm, 18 mm), size=(64 mm, 45 mm)), frame= box,            x=axis(label="Time (s)", range=(0, 10), ticks=[0, 2, 4, 6, 8, 10],                   minor_ticks=[1, 3, 5, 7, 9], tick_direction= in, grid= major),            y=axis(label="Intensity (a.u.)", range=(0, 1.2), ticks=[0, 0.4, 0.8, 1.2],                   format=".1f", minor_ticks=[0.2, 0.6, 1.0], tick_direction= in, grid= both), style=style)left.line(x=[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10],          y=[0.1, 0.2, 0.38, 0.67, 0.95, 0.79, 0.51, 0.33, 0.23, 0.18, 0.15], label="Fit")

Preview

Background
Publication
Original example
Total —
Details

Not run yet

Measured in this browser; excludes debounce.

Edits stay on this page
Dependencies
  • examples/plot/publication.lay

Reproduce

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