Awesome
Note
I have implemented improved plotting in CeTZ's "plot" library. This package will not receive any new features. Please use CeTZ as an replacement for typst-plot. Examples of CeTZ plot and chart capabilities can be found here:
Typst Plotting Library
A simple Typst library for plotting line charts.
Getting Started
// Install the package locally by running `just install`
#import "@local/typst-plot:0.0.1": plot, sample
#plot(sample(x => calc.sin(x), min: 0, max: 2 * calc.pi))
Examples
<table><tr> <td> <a href="gallery/simple.typ"> <img src="gallery/simple.png" width="250px"> </a> </td> <td> <a href="gallery/multi.typ"> <img src="gallery/multi.png" width="250px"> </a> </td> <td> <a href="gallery/tic-label.typ"> <img src="gallery/tic-label.png" width="250px"> </a> </td> </tr><tr> <td>Simple Plot</td> <td>Multiple Plots</td> <td>Custom Tick labels</td> </tr><tr> <td> <a href="gallery/parametric.typ"> <img src="gallery/parametric.png" width="250px"> </a> </td> <td></td> <td></td> </tr><tr> <td>Parametric</td> <td></td> <td></td> </tr></table>Click on the example image to jump to the code.