Skip to main content

hwostyle

Matplotlib style sheets and utilities for HWO direct imaging figures.

Installation

pip install hwostyle

For development:

git clone https://github.com/HabitableWorldsObservatory/hwostyle.git
cd hwostyle
pip install -e ".[dev,test]"

Quick Start

import hwostyle

# Switch to paper mode (white background, muted colors)
hwostyle.use("light")

# Switch to talk mode (black background, neon colors)
hwostyle.use("dark")

# Access the palette
colors = hwostyle.palette
colors.cyan   # '#08F7FE' in dark, '#0097A7' in light

# Use domain-specific colormaps
cmap = hwostyle.cmaps.intensity   # PSF images
cmap = hwostyle.cmaps.residual    # difference maps
cmap = hwostyle.cmaps.phase       # wavefront error

Modes

Feature Dark (Talks) Light (Papers) Barbie
Background Black White White
Colors Neon (high saturation) Muted (print-safe) RdPu pinks
Line width 2.5 1.5 1.0
Font Sans-serif Sans-serif Serif
Image cmap magma viridis RdPu

Color Palette

Name Dark Light
Cyan #08F7FE #0097A7
Pink #FE53BB #C2185B
Yellow #F5D300 #F9A825
Green #00FF41 #2E7D32
Red #FF0000 #D32F2F
Purple #9467BD #7B1FA2

Barbie Palette

Name Hex
Blush #FAA6B7
Rose #F768A1
Magenta #D42A92
Berry #9A017B
Plum #5E006F

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hwostyle-1.3.0.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

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

hwostyle-1.3.0-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file hwostyle-1.3.0.tar.gz.

File metadata

  • Download URL: hwostyle-1.3.0.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for hwostyle-1.3.0.tar.gz
Algorithm Hash digest
SHA256 97fda94db9f5577d3cf48cfd427105659640af44e4f2160c87028c670b2b6bb1
MD5 47f3de46ad3cb1d41737588b205abf0c
BLAKE2b-256 f185725bfc227f484601b7ce5f12a64e7f356b47669f03970204e4b7befd1108

See more details on using hashes here.

Provenance

The following attestation bundles were made for hwostyle-1.3.0.tar.gz:

Publisher: publish-to-pypi.yml on HabitableWorldsObservatory/hwostyle

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

File details

Details for the file hwostyle-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: hwostyle-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 15.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for hwostyle-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fc5b3fcbcd709c697ef53d0ce6925f0fead99512665a8f635d3f76dd614fa1a7
MD5 484d1d842a96a01808ab772344f70bb4
BLAKE2b-256 4132410d0e3e9cdab0cdfe350e4431c34bacb83c5dd89b1776d40bc60cdc6315

See more details on using hashes here.

Provenance

The following attestation bundles were made for hwostyle-1.3.0-py3-none-any.whl:

Publisher: publish-to-pypi.yml on HabitableWorldsObservatory/hwostyle

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

Release history Release notifications | RSS feed

1.4.0

2 files

This release

1.3.0 This release

2 files

1.2.0

2 files

1.1.0

2 files

1.0.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page