Skip to main content

breeplot

A clean, fluent plotting package for mathematics research figures, built on matplotlib. Figure chains draw and decoration calls into a single readable sentence, and handles the figure-sizing, 2D/3D layout, and color-cycling bookkeeping you'd otherwise rewrite per figure.

import breeplot as bp

fig = bp.figure(width="textwidth", panels=(1, 2))
fig.panel(0, 0).orbit(x, y, color_by=t).xlabel("x").ylabel("y")
fig.panel(0, 1).curve(x, fit_y, label="fit").legend()
fig.save("figures/orbit")

Install

pip install breeplot

For live, interactive figures inside Jupyter (pan/zoom in 2D, drag-to-rotate in 3D):

pip install "breeplot[notebook]"

Features

  • Fluent Figure API — scatter, orbit, curve, fit, separatrix, family, implicit, histogram, mark, plane, plus decoration (xlabel, ylabel, zlabel, title, legend, colorbar, xlim/ylim/ zlim, logx/logy, grid) — every call returns the Figure so calls chain.
  • Multi-panel grids with mixed 2D/3D axes, sized in physical units (width="textwidth" and friends) for drop-in use in a paper.
  • Figure.zoom() replays the layers already drawn onto a second panel at different axis limits — the "full view + zoomed inset" idiom common in research figures, without repeating your plotting calls.
  • A house color system (breeplot.colors) with categorical, sequential, and diverging palettes.
  • Live notebook viewing (breeplot.notebook.enable()) — figures stay interactive (zoom, pan, 3D rotate) inside Jupyter via ipympl.
  • Figure.save() writes multiple formats (PDF + PNG by default) in one call.

Development

pip install -e ".[dev]"
pytest

License

MIT

Metadata

Release files for breeplot 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for breeplot 0.1.0
File Size Uploaded
breeplot-0.1.0.tar.gz 18.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for breeplot 0.1.0
File Interpreter ABI Platform
breeplot-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 34.9 kB

Release files / breeplot-0.1.0.tar.gz

Download URL breeplot-0.1.0.tar.gz
Size 18.5 kB
Tags Source
SHA-256 checksum
How to use checksums
31330c621be404fab93027906c36d534032dca6fd75e0a881b946a68e71eace8
BLAKE2b-256 checksum
How to use checksums
9e9eef506856e3856a8cab2abc4242b62980ddafadad17d3afbd034c4e0b78a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / breeplot-0.1.0-py3-none-any.whl

Download URL breeplot-0.1.0-py3-none-any.whl
Size 16.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d4890ddb3f52786d6ebbdc8fd490d77d2a05aadfeab0adec10f94dc9edb36de3
BLAKE2b-256 checksum
How to use checksums
04b378e7e7ff7a2f43efb5856435d9b7f31c0ba1f50a4c72fd556838af0b6e15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page