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.2.0.tar.gz (15.9 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.2.0-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for hwostyle-1.2.0.tar.gz
Algorithm Hash digest
SHA256 cfd6d0c6b159e8b042fc6bb5af96b12f317c696cc63894e9ae8d5b0a879a498b
MD5 e9f840092122867b0a467a0f9841ddbc
BLAKE2b-256 1ecb01eeddc904ea3cd2b63ed08c0a385477a30dc0edb3ff84f95b419794e03e

See more details on using hashes here.

Provenance

The following attestation bundles were made for hwostyle-1.2.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.2.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for hwostyle-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 09f3f2270528407121325f23acf22c5ff32d48be3ba3291515f3998d929d3c7c
MD5 4d110fa056fd10a5b5726db5cc3adc01
BLAKE2b-256 019df0cb42b272b52c2b8f0b23613f6eeb6093db969dce18b4eca50e5a4f1bee

See more details on using hashes here.

Provenance

The following attestation bundles were made for hwostyle-1.2.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

1.3.0

2 files

This release

1.2.0 This release

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