Metadata-Version: 2.5
Name: mplume
Version: 0.2.0
Summary: Publication-ready scientific styles and figure helpers for Matplotlib
Project-URL: Repository, https://github.com/NaNIsaac/mplume
Author: NaNIsaac
License-Expression: MIT
License-File: LICENSE
Requires-Python: >=3.10
Requires-Dist: matplotlib>=3.8
Requires-Dist: numpy>=1.23
Provides-Extra: test
Requires-Dist: build>=1.2; extra == 'test'
Requires-Dist: pytest>=8; extra == 'test'
Description-Content-Type: text/markdown

# 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.
