proteus-mpl
PROTEUS Thermocline matplotlib theme. Publication-grade figures whose colors, fonts, and surfaces match the slides, the website, and the docs.
Install
pip install proteus-mpl
From a checkout of the repository: pip install figures/proteus-mpl (or cd
into the folder and pip install .).
Use
import proteus_mpl
proteus_mpl.use() # light: Paper background — papers, light slides
# proteus_mpl.use("dark") # dark: Void background — dark slides, hero figures
# proteus_mpl.use("white") # light theme on pure white — journal pages
What you get
- Cycles — both neutral-first, so a single-series plot draws in ink
(light) / paper (dark) and magma stays a deliberate signal. Light
(
proteus_mpl.CYCLE, 9 colours): ink, magma, solar, verdant, ocean, tidal, outgassing, fog, azure; CVD worst-pair ΔE 15.7 (Machado 2009). Dark (CYCLE_DARK, 6 colours): paper, magma, solar, and light-safe tones; ΔE 16.8. Past the cycle, switch line style (solid/dashed/dotted/dash-dot) instead of adding hues, and keep legends on multi-series plots. - Accents —
COLORS["solar"](#E0A32E, the star) withCOLORS["solar_deep"](#C8860F) for gold fills or thin marks on light surfaces, andCOLORS["verdant"](#57A05C, the habitable endpoint). - Module domain colors —
proteus_mpl.DOMAINS["interior"]etc, seven of them. Use these whenever a line is a module (SPIDER output → interior red, MORS → solar gold, Morrigan → accretion clay#A38F7A). Stable across every paper, talk, and diagram. Three of them are light in tone and thin out on a pale page: stellar gold at 2.0:1, atmosphere blue at 2.5:1, and accretion clay at 2.8:1 against Paper. Give those a legend rather than leaning on the hue for small marks. - Colormaps —
proteus(sequential, Void→Paper; default for imshow / pcolormesh; the one ramp that survives greyscale reproduction),proteus_div(diverging, light midpoint — print-safe for anomalies/residuals),proteus_phase(the brand ramp, magma→void→ocean, dark midpoint — hero figures and dark slides)._rreversals registered. - Type — Instrument Sans labels, Spline Sans Mono available for ticks via
fontfamily="Spline Sans Mono"; titles bold, left-aligned. The OFL brand fonts ship inside the package and register automatically onuse(). - Publication settings — 300 dpi savefig, tight bbox, TrueType embedding
(fonttype 42), text-as-paths SVG. Prefer
fig.savefig("fig.pdf").
The cycle on each surface
Regenerate with python examples/cycle.py.
Conventions
- Size figures at final printed size (A&A column ≈ 3.5 in) and keep default font sizes — never shrink a huge figure down.
- Light figures on light surfaces, dark figures on dark — no visible card.
- Journal white pages:
use("white"), ortransparent=Trueat savefig. - Magma is the hot signal: reserve it for the series you want the room to look at. Everything else starts from Ocean.
Metadata
Release files for proteus-mpl 1.3.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 | |
|---|---|---|---|
| proteus_mpl-1.3.0.tar.gz | 183.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| proteus_mpl-1.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 364.5 kB
Release files / proteus_mpl-1.3.0.tar.gz
| Download URL | proteus_mpl-1.3.0.tar.gz |
|---|---|
| Size | 183.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c88486d0921ca390bfc29d2d03e0332331342356955d10527c8fe06ea212066f
|
|
BLAKE2b-256 checksum How to use checksums |
b597b8e5b5a7e6037ddc4abd9896586845696d672c9d321e8de37ea48f174dca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Jul 30, 2026.
Transparency logRelease files / proteus_mpl-1.3.0-py3-none-any.whl
| Download URL | proteus_mpl-1.3.0-py3-none-any.whl |
|---|---|
| Size | 180.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
caeb0ed7ddb1ce4d501c0f053c1d57c1398f0f8b22d0a0741e1f608d14fc0a5d
|
|
BLAKE2b-256 checksum How to use checksums |
5d043a1c9147783e01f4026dbc2ad2943fc217a41593940cbc7465c233549265
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Jul 30, 2026.
Transparency log