Python library for SVG plots, with multi-panel composition and an extension API for custom plot types.
Project description
plotlet
plotlet is a Python library for SVG plots. It provides reproducible, byte-identical multi-panel scientific figures with a standard plotting vocabulary and a first-class extension story for custom plot types.
Documentation
Hands-on tour with executable examples:
- notebooks/00_introduction.ipynb — long-form data, aesthetic inheritance, layering, composition
Reference docs in docs/:
- API reference — mark methods, frame options, scales, tick overrides
- Philosophy — what's in core, what's not, and why
- Subplots — multi-panel composition, shared scales
- Extending — write your own plot type
- Themes — visual presets
- AI attributes —
data-plotlet-*schema for automation
Reference plot types beyond the standard vocabulary live in src/plotlet/extensions/ (single-file) and cookbook/ (multi-file projects).
Dependencies
plotlet supports Python 3.10+.
Required: fonttools, scipy (used by regression, qq, pointplot, dendrogram). numpy / pandas / polars inputs work transparently.
Optional: cairosvg for PNG / PDF export.
Installation
pip install plotlet
Testing
pip install -e ".[test]"
pytest tests/ # check vs. committed baselines
pytest tests/ --update # regenerate (review the diff!)
Development
Development takes place on GitHub. Please submit bugs to the issue tracker with a reproducible example.
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file plotlet-0.5.0.tar.gz.
File metadata
- Download URL: plotlet-0.5.0.tar.gz
- Upload date:
- Size: 748.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc6df76f85302fed989ce3cf2707744bd243e2ea02b3e85bffd8a40b056ff6ee
|
|
| MD5 |
79a227db20bbc504d102843d4c64fafb
|
|
| BLAKE2b-256 |
bde544ca4ae215174b243c0b544f0e7bf74f107cf3f90967d52c5d64ec545ff8
|
File details
Details for the file plotlet-0.5.0-py3-none-any.whl.
File metadata
- Download URL: plotlet-0.5.0-py3-none-any.whl
- Upload date:
- Size: 779.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
805950517297ffa212a32067aa7e8d4653dc2bde9022aee078b008bc5e8d83c2
|
|
| MD5 |
c527bbc8fdc8a3951f7755d55f5d21a1
|
|
| BLAKE2b-256 |
560637d59140e3a94db0e42e26774b147dca5a98a7f5dc51854b8ceadb43336f
|