mplume
Publication-ready scientific styles and figure composition for Matplotlib.
Traditional scientific graphs with inward major/minor ticks, closed frames, grid-free presentation, paper/slide/poster typography, and helpers for zoom insets and vertically stacked curves.
Install
pip install mplume
The new zoom and stack functions are available in version 0.2.0 source. Until that version reaches PyPI, install the development branch from GitHub.
Quick start
import numpy as np
import matplotlib.pyplot as plt
import mplume as mp
x = np.linspace(-3, 3, 600)
y = np.exp(-x*x) + 0.08*np.exp(-60*(x-0.4)**2)
with mp.style("box", "paper"):
fig, ax = mp.figure("single")
ax.plot(x, y)
mp.zoom(ax, xlim=(0.1, 0.8), ylim=(0.6, 1.1))
fig.savefig("figure.pdf")
Core API
- mp.use("box", "paper") applies rcParams globally.
- with mp.style("box", "paper") temporarily sets plotting defaults.
- box is a classic four-sided scientific frame with inward major/minor ticks.
- house is a lighter two-sided style.
- paper, slide, poster select typography scale.
- mp.figure("single") and mp.subplots("double", ncols=2) select figure width.
- mp.panel_label(ax, "a") labels an axes panel.
- mp.zoom(ax, xlim, ylim) creates a linked zoom inset.
- mp.stack(ax, x, ys, spacing="auto") adds display-only vertical offsets.
The zoom helper copies only ordinary data-coordinate lines; stack never mutates its input arrays. See docs/composition.md for limitations and examples/scientific.py for a runnable synthetic-data example.
mplume intentionally does not wrap plotting calls or replace plt.subplots. Not affiliated with OriginLab. License: MIT.
Metadata
Release files for mplume 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mplume-0.2.0.tar.gz | 6.9 kB | With provenance | Details for mplume-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mplume-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for mplume-0.2.0-py3-none-any.whl |
Total release size: 13.2 kB
Release files / mplume-0.2.0.tar.gz
| Download URL | mplume-0.2.0.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f7e7ec1ad182b35b07c2382b42358e6bf8abf234ef006f5c32128bc142d00035
|
|
BLAKE2b-256 checksum How to use checksums |
689ba9c7728b52942cbfbd0961248be83368497d0675700caac92b0d8973bbed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logRelease files / mplume-0.2.0-py3-none-any.whl
| Download URL | mplume-0.2.0-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a721f37a5b3d53d6beecfbb9d0a3d06036ec910fadff786c9a7c4da15289c785
|
|
BLAKE2b-256 checksum How to use checksums |
d12a2fece2f998d38c0bf0b4f02d763a1367f6d1185e06f4d5b24309944120da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logSecurity for mplume 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for mplume-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.