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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1fcff141833cad493fce416316d3dc5d78a2afbb49ad7f8ea133e7b8bd2d1dbf
|
|
| MD5 |
ca28bd035c747595788f0b6801f6a5e0
|
|
| BLAKE2b-256 |
95eb18957f9fa0ce2203a59f94117ba2ecdc176e031d7512d0e88d6feeea8b0c
|
Provenance
The following attestation bundles were made for hwostyle-1.1.0.tar.gz:
Publisher:
publish-to-pypi.yml on CoreySpohn/hwostyle
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hwostyle-1.1.0.tar.gz -
Subject digest:
1fcff141833cad493fce416316d3dc5d78a2afbb49ad7f8ea133e7b8bd2d1dbf - Sigstore transparency entry: 1352105808
- Sigstore integration time:
-
Permalink:
CoreySpohn/hwostyle@6b794bc600602b7c299eb430f8b423699d72d98a -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/CoreySpohn
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@6b794bc600602b7c299eb430f8b423699d72d98a -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f74945d66e80ec0e39d5cb8a8162ba4120e83bf254ed3075d525cae146d8fb3
|
|
| MD5 |
91c37031d6d3ad2bf36d7c63cb09412b
|
|
| BLAKE2b-256 |
a1afb5f45756ad39dc93c51592e034dcb7a98495c278bddab2841ebe4bf305bb
|
Provenance
The following attestation bundles were made for hwostyle-1.1.0-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on CoreySpohn/hwostyle
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hwostyle-1.1.0-py3-none-any.whl -
Subject digest:
0f74945d66e80ec0e39d5cb8a8162ba4120e83bf254ed3075d525cae146d8fb3 - Sigstore transparency entry: 1352105893
- Sigstore integration time:
-
Permalink:
CoreySpohn/hwostyle@6b794bc600602b7c299eb430f8b423699d72d98a -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/CoreySpohn
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@6b794bc600602b7c299eb430f8b423699d72d98a -
Trigger Event:
push
-
Statement type: