Skip to main content

A small graphing tool for functions, points, equations and more

Project description

Kaxe

BoxPlot

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

Installation

pip install kaxe          # 2D plotting (default)
pip install kaxe[3d]        # add 3D plotting (OpenGL)
pip install kaxe[pdf]       # add PDF export
pip install kaxe[3d,pdf]    # 3D + PDF

Quick example

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, recipes, styling guide, and export guide 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)
  • A straightforward object-oriented interface: create a window, add objects, style, save

Examples of plots

BoxPlot Polar plot PrettyPlot3D2 Contour grid Contour same AllLegends Functions Points Equations Globallight

Project details


Release history Release notifications | RSS feed

This version

1.6.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kaxe-1.6.0.tar.gz (4.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kaxe-1.6.0-py3-none-any.whl (4.0 MB view details)

Uploaded Python 3

File details

Details for the file kaxe-1.6.0.tar.gz.

File metadata

  • Download URL: kaxe-1.6.0.tar.gz
  • Upload date:
  • Size: 4.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for kaxe-1.6.0.tar.gz
Algorithm Hash digest
SHA256 8078d1f986685687139cd0c37a718d56d0cf1c9c68412a108c95743301a44633
MD5 bfe44a5bbf6f3050c91da455e44ee137
BLAKE2b-256 df5f81e5dfa6b1dca3a6d10a359f4767ba3784ff03cedc74811235179423bb6d

See more details on using hashes here.

File details

Details for the file kaxe-1.6.0-py3-none-any.whl.

File metadata

  • Download URL: kaxe-1.6.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for kaxe-1.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 81f8be8ac2daa9946989103d21febca7c707747e400322eee21288576d0e8602
MD5 c89056e034281ef14cc9f389d2acae7a
BLAKE2b-256 8f4ff04b48701682f8a81285062089518936c4036ada9c146e394153523c2fd0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page