Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/johannes-wolf/typst-plot

Typst Plotting Library
https://github.com/johannes-wolf/typst-plot

plot typst

Last synced: 6 days ago
JSON representation

Typst Plotting Library

Awesome Lists containing this project

README

        

# Note
**I have implemented improved plotting in [CeTZ](https://github.com/johannes-wolf/typst-canvas)'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:
- [CeTZ main page](https://github.com/johannes-wolf/typst-canvas)
- [CeTZ manual](https://github.com/johannes-wolf/typst-canvas/blob/master/manual.pdf?raw=true)
- [CeTZ plot test image](https://github.com/johannes-wolf/typst-canvas/blob/master/tests/plot/ref.png)
- [CeTZ chart test image](https://github.com/johannes-wolf/typst-canvas/blob/master/tests/chart/ref.png)

# Typst Plotting Library
A simple [Typst](https://typst.app) library for plotting line charts.

## Getting Started

```typst
// 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















Simple Plot
Multiple Plots
Custom Tick labels







Parametric

*Click on the example image to jump to the code.*