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.1.0.tar.gz (14.3 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.1.0-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for hwostyle-1.1.0.tar.gz
Algorithm Hash digest
SHA256 1fcff141833cad493fce416316d3dc5d78a2afbb49ad7f8ea133e7b8bd2d1dbf
MD5 ca28bd035c747595788f0b6801f6a5e0
BLAKE2b-256 95eb18957f9fa0ce2203a59f94117ba2ecdc176e031d7512d0e88d6feeea8b0c

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for hwostyle-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0f74945d66e80ec0e39d5cb8a8162ba4120e83bf254ed3075d525cae146d8fb3
MD5 91c37031d6d3ad2bf36d7c63cb09412b
BLAKE2b-256 a1afb5f45756ad39dc93c51592e034dcb7a98495c278bddab2841ebe4bf305bb

See more details on using hashes here.

Provenance

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