Skip to main content

Matplotlib style sheets and utilities for HWO direct imaging figures. Dual-mode dark (talks) and light (papers) themes with domain-specific colormaps.

Project description

hwostyle

Matplotlib style sheets and utilities for HWO direct imaging figures.

Installation

pip install hwostyle

For development:

git clone https://github.com/CoreySpohn/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

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

hwostyle-1.0.0.tar.gz (8.8 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.0.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for hwostyle-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5dfbf6c5b4077030873df07c38b9d9f3b4ee7ffa7f34593c619270848c8af142
MD5 80553c379a3cc626058ba910ec979e8e
BLAKE2b-256 134b9ccb061aa2053f589f014c7b21f24e5949aad13e539d29c9ce04b290bb95

See more details on using hashes here.

Provenance

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

Publisher: publish-to-pypi.yml on CoreySpohn/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.0.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for hwostyle-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 46438a55bd44267caf4b056cd47461f057513b71cf72f9827499379cc937ff95
MD5 b78e08708bf90624927a9082b5317624
BLAKE2b-256 46a1cebf4811fe4d99a4b4f4510a88edb264ace188387684e61418590f6d5455

See more details on using hashes here.

Provenance

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

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

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