Skip to main content

PROTEUS Thermocline matplotlib theme: brand color cycles, phase colormaps, light + dark variants.

Project description

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

What you get

  • Cycles — light: five of the six module-domain colours (stellar's pale tint is omitted on Paper) + ink + fog (proteus_mpl.CYCLE); dark: a substitution cycle with light-safe tones (CYCLE_DARK). The domain set and the light cycle are CVD-checked (Machado 2009, min pairwise ΔE 16.4). Keep legends on multi-series plots.
  • Module domain colorsproteus_mpl.DOMAINS["interior"] etc. Use these whenever a line is a module (SPIDER output → interior red). Stable across every paper, talk, and diagram.
  • Colormapsproteus (sequential, Void→Paper; default for imshow / pcolormesh), 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. To bundle the fonts, copy the TTFs from the repository's fonts/ folder into src/proteus_mpl/fonts/; missing fonts fall back gracefully.
  • Publication settings — 300 dpi savefig, tight bbox, TrueType embedding (fonttype 42), text-as-paths SVG. Prefer fig.savefig("fig.pdf").

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.
  • transparent=True when a journal page must show through.
  • Magma is the hot signal: reserve it for the series you want the room to look at. Everything else starts from Ocean.

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

proteus_mpl-1.0.0.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

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

proteus_mpl-1.0.0-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file proteus_mpl-1.0.0.tar.gz.

File metadata

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

File hashes

Hashes for proteus_mpl-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3d78ccc633b2dba59a4b20043a31e0fe2eb123cdb7f08cd6199f6d7567f5736e
MD5 464c74f89920bbf024638dbb826e00b6
BLAKE2b-256 996bccf06e937300694f250bc7131cc7373786dadc1f5e0c1670168f3d4e835f

See more details on using hashes here.

Provenance

The following attestation bundles were made for proteus_mpl-1.0.0.tar.gz:

Publisher: release.yml on FormingWorlds/proteus-visual-language

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

File details

Details for the file proteus_mpl-1.0.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for proteus_mpl-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6251215479a37352f80eb5a3f4b2057640b07fb68569ad1f39d5f8f7277e3104
MD5 d8df287b2c277f7c44dafeb752dd7663
BLAKE2b-256 aa3c8d6a7e7ad146b3edc0583fd924ddc2f0145536a745e2595cd3579ac8605b

See more details on using hashes here.

Provenance

The following attestation bundles were made for proteus_mpl-1.0.0-py3-none-any.whl:

Publisher: release.yml on FormingWorlds/proteus-visual-language

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