Skip to main content

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) with COLORS["solar_deep"] (#C8860F) for gold fills or thin marks on light surfaces, and COLORS["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). _r reversals 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 on use().
  • 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

light cycle dark cycle

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"), or transparent=True at 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.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for proteus-mpl 1.2.0
File Size Uploaded
proteus_mpl-1.2.0.tar.gz 183.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for proteus-mpl 1.2.0
File Interpreter ABI Platform
proteus_mpl-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 364.5 kB

Release files / proteus_mpl-1.2.0.tar.gz

Download URL proteus_mpl-1.2.0.tar.gz
Size 183.8 kB
Tags Source
SHA-256 checksum
How to use checksums
3b7a26b6887b527c056cf740d064385be8d9b0769c6417fae899dddb2e5ef788
BLAKE2b-256 checksum
How to use checksums
5cb2a39edb9d04636e455bf7844e44e32a9cbd4e2b1396cbefd20f9ba4ae5fca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.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 25, 2026.

Transparency log

Release files / proteus_mpl-1.2.0-py3-none-any.whl

Download URL proteus_mpl-1.2.0-py3-none-any.whl
Size 180.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b71bb9b1566090034b6f728950b1f679537ddd2fdfa462edc5e1e7cf073eae00
BLAKE2b-256 checksum
How to use checksums
33321b5c91bbdb2b0e0e928727e8a18c2349d350cd951d276a88334b1bf0cfb1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.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 25, 2026.

Transparency log

Release history Release notifications | RSS feed

1.3.0

2 release files

This release

1.2.0 This release

2 release files

1.1.2

2 release files

1.1.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page