Skip to main content

zoomy-plotting

Publication-ready plotting for Zoomy simulation outputs, with first-class support for 1D/2D/3D meshes and very large timeline datasets.

Why

  • Lazy: an HDF5 file with hundreds of snapshots opens cheaply. Only the cells needed for the current plot are read from disk.
  • Class-based, one store per session. Pass the store once to a MatplotlibPlotter; plot methods take only (ax, time_step, field, ...).
  • Config-driven styling. Every color, linewidth, colormap, and marker size lives in zoomy_plotting.CONFIG. No visual parameter is hardcoded inside the plot functions.
  • One API across dimensions. plot_1d / plot_2d / plot_3d share the same signature modulo the 3D viewpoint.

Quick start

import zoomy_plotting as zp
import matplotlib.pyplot as plt

store = zp.read_hdf5("simulation.h5")          # reads metadata only
plotter = zp.MatplotlibPlotter(store)

with zp.apply_style():
    fig, ax = plt.subplots()
    plotter.plot_1d(ax, time_step=0, field=store.field.h)
    plt.show()

store.close()

Field references

All three forms resolve to the same integer index:

plotter.plot_2d(ax, time_step=0, field=store.field.h)   # attribute on Zstruct
plotter.plot_2d(ax, time_step=0, field="h")             # string lookup
plotter.plot_2d(ax, time_step=0, field=0)               # raw index

Styling

Three ways to restyle:

# 1. per-call kwarg override
plotter.plot_2d(ax, time_step=0, field="h", cmap="plasma")

# 2. mutate the singleton config for the rest of the session
zp.CONFIG.cmap = "plasma"
zp.CONFIG.mesh_edgecolor = "gray"

# 3. context manager that reverts on exit
with zp.apply_style(cmap="plasma", mesh_edgecolor="gray"):
    plotter.plot_2d(ax, time_step=0, field="h")

Install

pip install -e .[testing]       # for tests
pip install -e .[plotly]        # optional plotly backend (future PR)
pip install -e .[pyvista]       # optional pyvista backend (future PR)

Metadata

Release files for zoomy-plotting 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zoomy-plotting 0.2.2
File Size Uploaded Provenance Actions
zoomy_plotting-0.2.2.tar.gz 47.1 kB Without provenance Details for zoomy_plotting-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for zoomy-plotting 0.2.2
File Interpreter ABI Platform Actions
zoomy_plotting-0.2.2-py3-none-any.whl Python 3 none any Details for zoomy_plotting-0.2.2-py3-none-any.whl

Total release size: 103.3 kB

Release files / zoomy_plotting-0.2.2.tar.gz

Download URL zoomy_plotting-0.2.2.tar.gz
Size 47.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a63af8ead37a72cc6ec5a7bf466a8cc1c3ea41581a9f9e6714fdb5640fd3a659
BLAKE2b-256 checksum
How to use checksums
3f40da16ca119afff9e2305b660ebb17bc7b7baf6beff7d4d6a707b59749713f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / zoomy_plotting-0.2.2-py3-none-any.whl

Download URL zoomy_plotting-0.2.2-py3-none-any.whl
Size 56.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4609705e6dcde7c6e1f8fd45d9d94de58cab2b450397137fd48f395a051f0ead
BLAKE2b-256 checksum
How to use checksums
f501a8f678a8ecdba37e0996f543f91ca5e524eb85d4c3692ca31453d0c0f3bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Security for zoomy-plotting 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page