Metadata-Version: 2.4
Name: kaxe
Version: 1.4.8
Summary: A small graphing tool for functions, points, equations and more
Author-email: Valter Yde Daugberg <valteryde@hotmail.com>
Project-URL: Homepage, https://github.com/valteryde/kaxe
Project-URL: Issues, https://github.com/valteryde/kaxe/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pillow
Requires-Dist: fondi>=0.2.0
Requires-Dist: sympy
Requires-Dist: scipy
Requires-Dist: openpyxl
Requires-Dist: tqdm
Requires-Dist: numba
Requires-Dist: python-dotenv
Requires-Dist: pyopengl
Requires-Dist: PySDL2
Requires-Dist: pysdl2-dll
Requires-Dist: numpy-stl
Requires-Dist: psutil
Requires-Dist: opencv-python-headless
Provides-Extra: pdf
Requires-Dist: reportlab>=4.0; extra == "pdf"
Requires-Dist: fonttools>=4.0; extra == "pdf"
Dynamic: license-file


# Kaxe

![BoxPlot](logo.png)

Kaxe is a lightweight, pure-Python plotting library for publication-quality figures in LaTeX documents. Create plots and charts with a simple object-oriented API, style them for A4 pages, and export to PNG or SVG.

Documentation: [kaxe.readthedocs.io](https://kaxe.readthedocs.io/en/latest/)

## Quick example

```python
import kaxe

plt = kaxe.Plot([-5, 5, -5, 5])
plt.add(kaxe.Function2D(lambda x: x**2 - 4))
plt.add(kaxe.Points2D([1, 2, 3], [1, 4, 9]))
plt.theme(kaxe.Themes.A4Medium)
plt.title("$x^2 - 4$")
plt.save("figure.png")
plt.save("figure.svg")
```

See the [getting started guide](https://kaxe.readthedocs.io/en/latest/pages/start.html), [recipes](https://kaxe.readthedocs.io/en/latest/pages/recipes.html), [styling guide](https://kaxe.readthedocs.io/en/latest/pages/styling.html), and [export guide](https://kaxe.readthedocs.io/en/latest/pages/export.html) for the full API.

## Goals

Kaxe was made to create simple, aesthetic graphs for articles, reports, and other academic work in LaTeX:

* Plots that fit the look of LaTeX documents (Computer Modern math via [fondi](https://github.com/valteryde/fondi))
* A straightforward object-oriented interface: create a window, add objects, style, save

## Examples of plots

![BoxPlot](tests/images/boxed.png)
![Polar plot](tests/images/polar.png)
![PrettyPlot3D2](tests/images/3d-function-pretty-2.png)
![Contour grid](tests/images/contourgrid.png)
![Contour same](tests/images/contour3d.png)
![AllLegends](tests/images/vectorimagearrow3d.png)
![Functions](tests/images/function.png)
![Points](tests/images/labels.png)
![Equations](tests/images/equation.png)
![Globallight](tests/images/lightfunction3d.png)
