A lightweight HDF5 trace plotting, filtering, and map-generation helper for engineering data.
Project description
FullPlot
FullPlot is a lightweight HDF5 plotting, trace filtering, and map-generation package for engineering simulation and test data.
FullPlot is intentionally independent from FullFlow. FullPlot does not import FullFlow, and FullFlow does not import FullPlot. HDF5 files are the interface between the two packages.
Installation
pip install fullplot
For local development with uv:
uv sync --dev
uv run pytest
Quick plotting
import fullplot as fplt
run = fplt.open("engine_sim.h5")
run.tree()
run.list()
run.plot(
x="time",
y="node_pressure",
xlabel="Time [s]",
ylabel="Pressure [Pa]",
)
Traces
A Trace is a generic one-dimensional line of data. It can represent simulation data, test data, a filtered trace, a redline, a blueline, a command trace, or a derived trace.
import fullplot as fplt
run = fplt.open("hotfire.h5")
chpt = run.trace("CHPT", x="time")
chpt_filtered = chpt.filter("moving_average", window=0.05)
redline = fplt.Trace.constant("CHPT Redline", x=chpt.x, y=400.0, role="redline")
fplt.plot([chpt, chpt_filtered, redline])
Generated traces
import numpy as np
import fullplot as fplt
time = np.linspace(0.0, 10.0, 1001)
command = fplt.Trace.from_points(
"Main Ox Valve Command",
points=[(0.0, 0.0), (1.0, 0.0), (1.1, 1.0), (8.0, 1.0), (8.1, 0.0)],
x=time,
mode="previous",
role="command",
)
fplt.plot(command)
Map generation
FullPlot can generate rectangular HDF5 maps that another package, including FullFlow, can consume later.
import fullplot as fplt
fplt.generate_map(
"demo_map.h5",
group="properties",
axes=[
fplt.Axis.linear("pressure", 1.0e5, 5.0e5, 5),
fplt.Axis.linear("temperature", 250.0, 500.0, 6),
],
evaluate=lambda pressure, temperature: {
"density": pressure / (287.0 * temperature),
},
)
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 fullplot-0.0.1.tar.gz.
File metadata
- Download URL: fullplot-0.0.1.tar.gz
- Upload date:
- Size: 21.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbef815962ac3d72037af9264ae00e305229111ad9b2dba9adec3c06f4dc7d2b
|
|
| MD5 |
a38e4827179a411f56fdd95e3293247b
|
|
| BLAKE2b-256 |
90285946a2328543b04ecbb3060695f332caf684a483275a04a5829b237df806
|
File details
Details for the file fullplot-0.0.1-py3-none-any.whl.
File metadata
- Download URL: fullplot-0.0.1-py3-none-any.whl
- Upload date:
- Size: 23.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9ae2863d9ac09ea2c46b8970efcc0ea5a181978a1b6e1cf95d4bc6b5352dbfd
|
|
| MD5 |
6481b8393b0012b39b5610b90b67df42
|
|
| BLAKE2b-256 |
60db55dfc5a4b2b462d8298ea679b98ae26d93dd8aed3f19267bee6aa48ae7fc
|