Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/johannes-wolf/typst-plot
- Owner: johannes-wolf
- License: gpl-3.0
- Archived: true
- Created: 2023-03-27T13:19:14.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-27T03:17:28.000Z (over 1 year ago)
- Last Synced: 2024-08-02T06:17:34.598Z (3 months ago)
- Topics: plot, typst
- Language: Shell
- Homepage:
- Size: 1.06 MB
- Stars: 90
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-typst-cn - typst-plot
- awesome-typst - typst-plot - A library for plotting line charts (deprecated in favor of CeTZ) (Templates & Libraries / Plotting)
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 labelsParametric
*Click on the example image to jump to the code.*