Skip to main content

Direct-manipulation figure editor for matplotlib — edit, annotate, zoom-inset, beautify, export.

Project description

figmint

CI License: MIT Python

Direct-manipulation figure editor for matplotlib. Open any matplotlib figure in a real GUI, click to select elements, edit their properties, drag text around, and export a PNG/PDF/SVG or a clean standalone matplotlib script. figmint never edits your source file.

import matplotlib.pyplot as plt
from figmint import edit

fig, ax = plt.subplots()
ax.plot([1, 2, 3], [1, 4, 9], marker="o", label="data")
ax.legend()

edit(fig)   # opens the editor — blocks in scripts, non-blocking in Jupyter

Status: early release (v0.1.0). The core editor works today (see "Available now"). The flagship tools — inset-zoom, subplot layout, and one-click Beautify — are on the near-term roadmap. Full design lives in IMPLEMENTATION_SPEC.md.

Available now (v0.1.0)

  • Click-to-select any element (lines, text, title, labels, legend) with a highlight.
  • Property panel — edit text (content, font size, color) and lines (width, style, marker, marker size, color); every change is undoable.
  • Drag text annotations; delete elements; full undo/redo.
  • Export — PNG/PDF/SVG at any DPI, a standalone matplotlib .py script, and a reloadable .figmint project file.
  • Non-intrusive — your source file is never modified.
  • Works in scripts and Jupyter; dark/light theme; high-DPI aware.

On the roadmap

  • Inset-zoom tool — drag a region, get a magnified inset with connector lines.
  • Visual subplot/layout editing — add, remove, rearrange panels; tune spacing.
  • One-click Beautify — curated publication presets, tight layout, font harmonizing.
  • Annotation tools (arrows, shapes, LaTeX), richer legend/axes editing.

Install

pip install figmint

# or from source:
git clone https://github.com/wsiyal/figmint
cd figmint
pip install -e ".[dev]"

Documentation

Full docs: https://wsiyal.github.io/figmint (built from docs/).

Development

pip install -e ".[dev]"
ruff check .        # lint
ruff format .       # format
mypy figmint        # type-check
pytest              # tests

See CONTRIBUTING.md.

License

MIT. figmint dynamically imports PySide6 (LGPL) and matplotlib (BSD-style); those remain under their own licenses.

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

figmint-0.1.0.tar.gz (35.1 kB view details)

Uploaded Source

Built Distribution

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

figmint-0.1.0-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

File details

Details for the file figmint-0.1.0.tar.gz.

File metadata

  • Download URL: figmint-0.1.0.tar.gz
  • Upload date:
  • Size: 35.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for figmint-0.1.0.tar.gz
Algorithm Hash digest
SHA256 94ce12f00408b7a37693ec7d89c95f1c33db8e28b944fd9527cd7f5ff7e36750
MD5 95e8960693cd09d1fcfe2e69ce490ec7
BLAKE2b-256 bf4b28b06c133db7c11ce9cdc291c5b7ee0127ce8b401cf9f939d55fcfc3ca5d

See more details on using hashes here.

Provenance

The following attestation bundles were made for figmint-0.1.0.tar.gz:

Publisher: release.yml on wsiyal/figmint

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file figmint-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: figmint-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 22.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for figmint-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a8ba0d73c07657f8b8fbbb85f7efb5e09012b39139e63d4f5af5200504b07acf
MD5 1ed7f2e7188af89d811a077d8f8cc7f1
BLAKE2b-256 1bfbc1c3d545006b100f30c4003dfb6e70e6dcee6459fd18a47585bd91589561

See more details on using hashes here.

Provenance

The following attestation bundles were made for figmint-0.1.0-py3-none-any.whl:

Publisher: release.yml on wsiyal/figmint

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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