

![social-card](https://github.com/user-attachments/assets/d1d9eab9-deb8-4cd2-9dd5-78c26418ca98)


[![Typst Package](https://img.shields.io/badge/dynamic/toml?url=https%3A%2F%2Fraw.githubusercontent.com%2Flilaq-project%2Flilaq%2Fv0.5.0%2Ftypst.toml&query=%24.package.version&prefix=v&logo=typst&label=package&color=239DAD)](https://typst.app/universe/package/lilaq)
[![Test Status](https://github.com/lilaq-project/lilaq/actions/workflows/run_tests.yml/badge.svg)](https://github.com/lilaq-project/lilaq/actions/workflows/run_tests.yml)
[![MIT License](https://img.shields.io/badge/license-MIT-blue)](https://github.com/lilaq-project/lilaq/blob/main/LICENSE)
[![Static Badge](https://img.shields.io/badge/documentation-736ad9)](https://lilaq.org/)

_Lilaq is a powerful plotting library for [Typst](https://typst.app/)._


----



You can install the package by cloning the repository and importing Lilaq with
```typ
#import "@preview/lilaq:0.5.0" as lq
```

The documentation lives at https://lilaq.org. 

## Demos
Clicking on any demo image below will bring you to the respective page of the documentation that shows how to create this plot. 


<table>
<tr>
    <th>Line plot</th>
    <th>Scatter</th>
    <th>Bar chart</th>
</tr>
<tr>
<td>

[![simple plot demo](https://github.com/user-attachments/assets/c71886e0-e0a9-499e-848f-18580b1da523)](https://lilaq.org/docs/quickstart#the-first-plot)

</td>

<td>

[![scatter](https://github.com/user-attachments/assets/a1cf3019-b306-44a0-b28f-a2bb6fa522eb)](https://lilaq.org/docs/reference/scatter)

</td>
<td>

[![bar chart](https://github.com/user-attachments/assets/7822cc4f-6f12-4622-9f38-18ca7dd2a4fa)](https://lilaq.org/docs/reference/bar)

</td>
</tr>
<tr>
    <th>Boxplot</th>
    <th>Quiver</th>
    <th>Styled marks</th>
</tr>
<tr>
<td>

[![boxplot](https://github.com/user-attachments/assets/09b1251a-46b3-488f-aab8-451d950c044c)](https://lilaq.org/docs/reference/boxplot)

</td>
<td>

[![quiver](https://github.com/user-attachments/assets/98f10346-2686-4c0c-8955-8a42465e65aa)](https://lilaq.org/docs/reference/quiver)

</td>
<td>

[![marks](https://github.com/user-attachments/assets/26e9e478-1599-4ded-9e6d-7fe0193ae6b9)](https://lilaq.org/docs/examples/styled-marks)

</td>
</tr>

<tr>
    <th>Errorbars</th>
    <th>Plot smoothing</th>
    <th>Stem plot</th>
</tr>
<tr>
<td>

[![errorbars](https://github.com/user-attachments/assets/fdb054ad-e946-4ace-8a43-334676afebff)](https://lilaq.org/docs/reference/errorbar)

</td>
<td>

[![plot smoothing](https://github.com/user-attachments/assets/912bfbda-b091-4074-8601-3c173a8168da)](https://lilaq.org/docs/reference/plot#smooth)

</td>
<td>

[![stem plot](https://github.com/user-attachments/assets/070fb488-ff8b-401b-aba3-31f2ea02f996)](https://lilaq.org/docs/reference/stem)

</td>
</tr>

<tr>
    <th>Colormesh</th>
    <th>Contour</th>
    <th>Color bar</th>
</tr>
<tr>
<td>

[![colormesh](https://github.com/user-attachments/assets/db59b76b-7eda-4045-9faf-e74fa9e92043)](https://lilaq.org/docs/reference/colormesh)

</td>
<td>

[![contour](https://github.com/user-attachments/assets/b60d8bac-faf6-4465-bd78-0687f3912108)](https://lilaq.org/docs/reference/contour)

</td>
<td>

[![color bar](https://github.com/user-attachments/assets/babf0319-e4e7-4c0d-90d4-ca80739773f6)](https://lilaq.org/docs/reference/colorbar)

</td>
</tr>
</table>



<table>
<tr>
    <th>Spectrum with secondary axis</th>
    <th>Climograph with twin axis</th>
</tr>
<tr>
<td>

[![spectrum plot](https://github.com/user-attachments/assets/2fe1b3e3-14b3-43ba-b117-e20151203a9c)](https://lilaq.org/docs/examples/dual-axis)

</td>
<td>

[![climograph](https://github.com/user-attachments/assets/4151bca1-67f5-41e3-aef3-b4d2e4c07eb9)](https://lilaq.org/docs/examples/climograph)

</td>
</tr>
<tr>
    <th>Bar plot with numbers</th>
    <th>Multiple twin axes</th>
</tr>
<tr>
<td>

[![bars with numbers](https://github.com/user-attachments/assets/c7e0edda-0b16-472b-83e3-1d639fc9c2b1)](https://lilaq.org/docs/examples/bar-plot-with-numbers)

</td>
<td>

[![twin axes](https://github.com/user-attachments/assets/b2706289-24a8-4e6d-bde0-119f13552855)](https://lilaq.org/docs/tutorials/axis#independent-axes-twin-axes)

</td>
</tr>
</table>




<table>
<tr>
    <th>Plot within a plot</th>
    <th>Koch snowflake fractal</th>
</tr>
<tr>
<td>

[![weierstrass function](https://github.com/user-attachments/assets/0181795f-9b5d-4552-9be3-c85ddcdba83a)](https://lilaq.org/docs/examples/plot-within-a-plot)

</td>
<td>

[![koch snowflake fractal](https://github.com/user-attachments/assets/14e5a26e-fd13-41ff-be73-817730e77dbf)](https://lilaq.org/docs/examples/koch-snowflake)

</td>
</tr>
</table>

