// Example 5: Scientific Plot with CeTZ-Plot #import "@preview/cetz:0.4.2": canvas, draw #import "@preview/cetz-plot:0.1.3": plot #set text(font: "Libertinus Serif", size: 11pt) #set page(width: auto, height: auto, margin: 0.5cm) #canvas({ import draw: * let f(x) = calc.sin(x) * calc.exp(-x/10) let g(x) = calc.cos(x) * calc.exp(-x/10) plot.plot( size: (12, 6), x-tick-step: 2, y-tick-step: 0.5, { plot.add(f, domain: (0, 10), style: (stroke: blue + 2pt), label: [Damped Sine]) plot.add(g, domain: (0, 10), style: (stroke: red + 2pt), label: [Damped Cosine]) }) })