Skip to main content

FullPlot

PyPI version Python License

FullPlot is a lightweight HDF5 plotting, trace-processing, and map-generation package for engineering simulation and test data.

It is designed for workflows where the data is already in HDF5 and the user wants a simple Python interface for inspecting, plotting, filtering, aligning, and saving engineering traces without building a large application around the file format.

FullPlot is especially useful for:

  • simulation outputs stored in HDF5,
  • rocket-engine and test-stand time histories,
  • generic sensor data,
  • controller commands and sequence traces,
  • redline, blueline, yellowline, and greenline overlays,
  • quick HDF5 inspection,
  • 1D trace overlays,
  • dual-axis plots,
  • 2D heat maps,
  • multidimensional dataset slicing,
  • simple rectangular-grid map generation for downstream tools such as FullFlow.

FullPlot does not require a special FullFlow file format. If your HDF5 file contains normal numeric datasets, FullPlot can inspect and plot them.


Installation

pip3 install fullplot

FullPlot requires Python 3.11 or newer.


Quick start

Create or open an HDF5 file that contains a time dataset and one or more numeric channels:

hotfire.h5
├── time
├── PCMC_1
├── PCMC_2
├── PCMC_3
├── OIPT
├── FIPT
├── PBTC_1
└── MOV_CMD

Plot a single trace:

import fullplot as fplt

run = fplt.open("hotfire.h5")

run.plot(
    x="time",
    y="PCMC_1",
    xlabel="Time [s]",
    ylabel="Pressure [psia]",
    title="Chamber Pressure",
)

Plot several traces:

run.plot(
    x="time",
    y=["PCMC_1", "PCMC_2", "PCMC_3"],
    xlabel="Time [s]",
    ylabel="Pressure [psia]",
    title="Chamber Pressure Sensors",
)

Make a dual-axis plot:

run.plot(
    x="time",
    y=["PCMC_1", "OIPT", "FIPT"],
    y2="MOV_CMD",
    xlabel="Time [s]",
    ylabel="Pressure [psia]",
    y2label="Command [-]",
    title="Pressure and Main Ox Valve Command",
)

Save a figure without showing a GUI window:

run.plot(
    x="time",
    y="PCMC_1",
    save="pcmc_1.png",
    show=False,
)

HDF5 inspection

FullPlot starts with inspection. Use tree() when you want to see the file layout and list() when you want the datasets grouped by dimensionality.

import fullplot as fplt

run = fplt.open("hotfire.h5")

run.tree()
run.list()

The same operations are available at module level:

fplt.tree("hotfire.h5")
fplt.list("hotfire.h5")

You can scope an H5File to a group:

run = fplt.open("engine_sim.h5")
transient = run.at("/Engine/transient/runs/startup")

transient.tree()
transient.plot(x="time", y="Chamber_Pressure")

Dataset selectors can be:

  • absolute HDF5 paths, such as "/Engine/transient/time",
  • paths relative to the current root, such as "tracks/PCMC_1",
  • unique short names, such as "PCMC_1".

If a short name matches more than one dataset, FullPlot raises AmbiguousDatasetError instead of guessing.

Read a raw dataset:

pressure = run.read("PCMC_1")

Read scalar datasets under a group:

settings = run.values("metadata")

Reading FullFlow linearizations

FullPlot can read previously calculated FullFlow steady-state and transient linearization records. The result is a labeled Linearization object containing the state-space matrices and the operating point at which they were computed.

A continuous-time linear model takes the form

\Delta\dot{x}=A\Delta x+B\Delta u
\Delta y=C\Delta x+D\Delta u

where:

  • x: physical dynamic state vector (for example stored mass or energy),
  • u: selected input vector (for example valve area),
  • y: selected output vector (for example chamber pressure),
  • A: how state changes affect the state derivatives,
  • B: how input changes affect the state derivatives,
  • C: how state changes affect outputs,
  • D: how input changes directly affect outputs.

\Delta denotes a deviation from the saved operating point. For a non-equilibrium transient point, the model also needs the saved baseline derivative:

\dot{x}\approx\dot{x}_0+A(x-x_0)+B(u-u_0)
y\approx y_0+C(x-x_0)+D(u-u_0)

FullPlot does not create these matrices. It reads them from FullFlow's linearization HDF5 output, without needing the original nonlinear network or property-model packages.

Discover available results

import fullplot as fplt

file = fplt.open("Linearization.h5")
info = file.linearizations()

linearizations() prints a summary of each available run and returns a list of dictionaries. Each record includes network, solver, run, path, time, matrix dimensions (states, inputs, outputs), and saved transient point times (times). When only transient points were saved, time is None because there is no separate base result.

For programmatic discovery without printing:

info = file.linearizations(print_output=False)

for run in info:
    print(run["solver"], run["time"], run["times"])

Read one linearization

steady = file.linearization(solver="steady_state")

print(steady.A)
print(steady.B)
print(steady.C)
print(steady.D)

Read the final/base transient result with:

final = file.linearization(solver="transient")

Omitting time selects the base result, not the latest point stored in points/. If only saved points are present, specify time= or times=. If the file contains both steady-state and transient records, select solver= explicitly. If only one record is available, it can be inferred.

Read transient operating points

point = file.linearization(solver="transient", time=0.1)

print(point.time)
print(point.A.shape)
print(point.states)

Read several points at once:

points = file.linearization(
    solver="transient",
    times=[0.1, 0.3],
)

for requested_time, linear in points.items():
    print(requested_time, linear.A, linear.D)

times= returns an ordinary dictionary keyed by the requested times, even if HDF5 stores 0.3 as 0.30000000000000004. Times are matched within a narrow floating-point tolerance. If a time does not exist, FullPlot reports the available point times. If multiple points match the same time, it rejects the ambiguous selection.

Saved points can have different numbers of states, inputs, or outputs. FullPlot returns each result independently; it does not attempt to concatenate incompatible matrices.

Scope into a run

run = file.at("/Water_Flow/linearization/transient/runs/base")

point = run.linearization(time=0.1)
final = run.linearization()

A handle scoped directly to a point group can read that point without a time argument:

point = file.at(
    "/Water_Flow/linearization/transient/runs/base/points/0"
).linearization()

If several networks contain matching records, .linearization() raises an ambiguity error instead of choosing one arbitrarily. Use .at() to select the desired network or run. For non-base model-option runs, scope to the run group or supply its HDF5 run path (such as run="Pump_Model/polytropic"). A single unambiguous non-base run can also be selected automatically.

Data available in Linearization

Attribute Description
A, B, C, D NumPy state-space matrices
x0, xdot0, u0, y0 Nominal states, state rates, inputs, and outputs
states, inputs, outputs Ordered Python string tuples corresponding to matrix rows and columns
time Operating-point time
diagnostics Saved condition numbers and other numerical diagnostics
model_options Saved FullFlow model-option metadata
network, solver, run, path Source identification and HDF5 path

Dimensions are checked on reading:

A\in\mathbb R^{n_x\times n_x},\quad B\in\mathbb R^{n_x\times n_u},\quad
C\in\mathbb R^{n_y\times n_x},\quad D\in\mathbb R^{n_y\times n_u}.

FullPlot validates the baseline-vector lengths and requires compatible label counts. HDF5 byte strings are decoded to regular Python strings. Incorrect or missing datasets raise LinearizationError.

Using the matrices

Matrix labels determine the meaning of each row and column:

linear = file.linearization(solver="transient", time=0.1)

state_index = linear.states.index("Pipe 1.mass_flow")
input_index = linear.inputs.index("Pipe 1.cross_sectional_area")

sensitivity = linear.B[state_index, input_index]
print(sensitivity)

For a small deviation from the nominal operating point:

import numpy as np

dx = np.zeros(len(linear.states))
du = np.zeros(len(linear.inputs))
du[0] = 1e-6

xdot = linear.xdot0 + linear.A @ dx + linear.B @ du
y = linear.y0 + linear.C @ dx + linear.D @ du

These are local predictions, not a substitute for the nonlinear model away from the operating point. FullPlot reads the saved arrays; it does not provide built-in eigenvalue analysis, controller tuning, state-space integration, linearization heat maps, or matrix-coefficient trace extraction.

FullFlow HDF5 format

The reader supports the current FullFlow per-run and per-point layout:

Network/
  linearization/
    steady_state/
      runs/
        base/
          A, B, C, D
          x0, xdot0, u0, y0
          states, inputs, outputs, time
          diagnostics/, model_options/
    transient/
      runs/
        base/
          A, B, C, D
          x0, xdot0, u0, y0
          states, inputs, outputs, time
          diagnostics/, model_options/
          points/
            0/
              A, B, C, D, ...
              time
            1/
              A, B, C, D, ...
              time

Reading a saved linearization is not the same as calculating one from a normal simulation-history file. Ordinary result traces alone cannot determine the original system equations or their derivatives. Matrix generation remains FullFlow's responsibility.

Linearization examples

Run the small demo generator, then the two reading examples:

python examples/linearization/0generate_linearization_data.py
python examples/linearization/1inspect_linearization.py
python examples/linearization/2read_transient_points.py

The demo uses a tiny, self-contained HDF5 file in FullFlow's export format. Replace its filename with your own FullFlow result to inspect real networks. No FullFlow dependency is needed for these reading examples.

Core public API

Most users only need these names:

import fullplot as fplt

fplt.open
fplt.plot
fplt.map
fplt.tree
fplt.list
fplt.read
fplt.time
fplt.trace
fplt.write_traces
fplt.Trace
fplt.TimeAxis
fplt.Axis
fplt.generate_map
fplt.Linearization

The main classes are:

Name Purpose
H5File Lightweight handle for one HDF5 file and root group. Created with fplt.open(...).
Trace Reusable one-dimensional x/y data object. Used for raw data, filtered data, generated limits, commands, and derived traces.
TimeAxis Shared shiftable and windowable time basis. Several traces can share one axis and follow the same alignment/window.
Axis Independent variable definition for rectangular-grid map generation.
Linearization Labeled FullFlow state-space matrices and their saved operating point.

Important exceptions are:

Name Meaning
FullPlotError Base package exception.
DatasetNotFoundError A requested HDF5 dataset or group could not be found.
AmbiguousDatasetError A short name matched more than one HDF5 object.
PlotDataError Data shape, type, dimensionality, or scale is invalid for plotting or trace creation.
FullPlotMapError Base map-generation exception.
MapGenerationError Map generation failed during evaluation, resume, or file layout validation.
MapOutputError The map evaluate(...) function returned invalid outputs.
LinearizationError A saved FullFlow linearization is missing, ambiguous, or malformed.

Trace objects

A Trace is a one-dimensional line of data:

import fullplot as fplt

run = fplt.open("hotfire.h5")

time = run.time("time")
pc = run.trace(y="PCMC_1", x=time, name="Chamber Pressure")

A trace stores:

  • x: current x-values,
  • y: y-values,
  • name: legend/display name,
  • role: plotting role,
  • attrs: metadata dictionary.

Useful trace attributes:

pc.x
pc.y
pc.value
pc.time
pc.finite
pc.tmin
pc.tmax
pc.time_range

Create traces directly from arrays:

import numpy as np
import fullplot as fplt

x = np.linspace(0.0, 10.0, 1001)
y = 300.0 + 10.0 * np.sin(x)

trace = fplt.Trace.from_arrays("Synthetic Pressure", x=x, y=y)

Create a constant reference trace:

redline = fplt.Trace.constant("PCMC Redline", x=pc.x, y=400.0, role="redline")

Create a command or sequence trace from points:

mov_command = fplt.Trace.from_points(
    "MOV Command",
    points=[
        (0.0, 0.0),
        (0.5, 0.0),
        (0.6, 1.0),
        (10.0, 1.0),
        (10.1, 0.0),
    ],
    x=pc.x,
    mode="previous",
    role="command",
)

Create an analytic trace from a function:

reference = fplt.Trace.from_function(
    "Reference",
    x=pc.x,
    function=lambda t: 300.0 + 5.0 * np.sin(2.0 * np.pi * 0.2 * t),
)

Plot trace objects directly:

fplt.plot([pc, redline, mov_command])

Trace roles

Trace roles are plotting hints. They do not perform limit checking, abort checking, controller execution, or sequence execution.

Valid roles are:

Role Intended meaning Default line style
"data" Normal measured or simulated data solid
"redline" Abort or hard limit reference dashed red-tinted line
"blueline" Lower/secondary reference dashed blue-tinted line
"yellowline" Warning or caution reference dashed yellow-tinted line
"greenline" Nominal target or expected value dashed green-tinted line
"command" Command, schedule, or sequence state dash-dot step line

Example:

redline = fplt.Trace.constant("Abort", x=pc.x, y=400.0, role="redline")
yellowline = fplt.Trace.constant("Warning", x=pc.x, y=350.0, role="yellowline")
greenline = fplt.Trace.constant("Target", x=pc.x, y=300.0, role="greenline")

fplt.plot([pc, redline, yellowline, greenline])

Shared time axes and test-data alignment

TimeAxis is useful when several traces should move together in time.

time = run.time("time")

pc = run.trace(y="PCMC_1", x=time)
oipt = run.trace(y="OIPT", x=time)
fipt = run.trace(y="FIPT", x=time)

Shift the shared time axis so raw test time 95 seconds becomes model time zero:

time.zero_at(95.0)

All three traces shift because they share the same TimeAxis object.

Use align(...) when matching a raw data time to a model time:

time.align(data_time=95.0, model_time=0.0)

Window the shared time axis when every attached trace should use the same section of the test:

time.window(start=2.0, stop=6.5)

pc.x      # only 2.0 ... 6.5 s
pc.y      # matching PCMC samples
oipt.y    # matching OIPT samples
fipt.y    # matching FIPT samples

The original arrays are preserved. Restore the full range with:

time.clear_window()

Or create an independently windowed copy:

mainstage_time = time.windowed(2.0, 6.5)

Useful TimeAxis attributes:

time.raw          # original unshifted samples
time.full_values  # all shifted samples before windowing
time.values       # shifted samples in the active window
time.zero         # current zero offset
time.count        # active sample count
time.raw_count    # original sample count
time.duration     # active time span
time.raw_duration # original time span
time.window_range # (start, stop)
time.has_window   # whether a shared window is active

For a trace that uses a shared TimeAxis, trace.raw_y gives the original y-array while trace.y follows the active time window.


Missing values and windows

FullPlot preserves non-finite y-values such as NaN. This is deliberate. Missing test-data samples should appear as gaps in plots instead of being connected by a misleading line.

Use TimeAxis.window(...) when several traces should be cropped together. Use Trace.window(...) when only one trace should be valid over part of the otherwise unchanged time axis:

startup = pc.window(start=0.0, stop=3.0, name="Startup Window")

Trace.window(...) keeps its current x-axis and replaces y-values outside the interval with NaN. This is useful when a solver or comparison routine should treat one signal as unavailable outside that interval.

Remove missing samples when you explicitly need compact finite data:

pc_compact = pc.omit_missing()

drop_missing is an alias:

pc_compact = pc.drop_missing()

Filtering and trace math

Filter a trace:

pc_filtered = pc.filter("moving_average", window=0.05, name="PCMC Filtered")

Supported filters:

pc.filter("moving_average", window=0.05)
pc.filter("median", window=0.05)
pc.filter("savgol", window=0.05, order=2)
pc.filter("lowpass", cutoff=50.0)

For moving-average, median, and Savitzky-Golay filters, window can be either:

  • an integer sample count, or
  • a positive x-width, such as seconds when x is time.

Scale or offset a trace:

pressure_pa = pc.scale(6894.757, name="Pressure [Pa]")
pressure_gauge = pc.offset(-14.7, name="Gauge Pressure")

Compute a numerical derivative:

pc_rate = pc.derivative(name="dPc/dt")

Resample a trace:

new_time = np.linspace(0.0, 10.0, 1001)
pc_resampled = pc.resample(new_time)

Do trace math. When combining two traces, FullPlot automatically resamples the right-hand trace onto the left-hand trace x-axis:

error = sim_pc - test_pc
ratio = sim_pc / test_pc

Sample a trace at one or more x-values:

value = pc.value_at(1.25)
values = pc.value_at([1.0, 1.5, 2.0], method="linear")
value = pc(1.25, method="nearest")

Supported sample methods are "previous", "linear", and "nearest".

Supported bounds modes are:

  • "nan": return NaN outside the trace range,
  • "clamp": use the first or last sample outside the trace range,
  • "raise": raise an error outside the trace range.

Writing processed traces

Write one or more Trace objects to a simple HDF5 layout:

fplt.write_traces(
    "processed_traces.h5",
    [pc, pc_filtered, redline],
    group="traces",
    overwrite=True,
)

The file layout is:

processed_traces.h5
└── traces
    ├── PCMC_1
    │   ├── x
    │   └── y
    ├── PCMC_Filtered
    │   ├── x
    │   └── y
    └── PCMC_Redline
        ├── x
        └── y

Trace metadata is stored as HDF5 attributes when possible.


Line plotting options

H5File.plot(...) and fplt.plot(...) support:

  • single or multiple left-axis traces,
  • optional right-axis traces with y2,
  • HDF5 datasets and Trace objects in the same plot,
  • custom labels,
  • log x/y axes,
  • display-only xlim, ylim, and y2lim limits,
  • dark and light themes,
  • saving to PNG, SVG, PDF, or any Matplotlib-supported output,
  • returning Matplotlib objects for custom edits.

Example with labels and a right axis:

fig, axes = run.plot(
    x="time",
    y=["PCMC_1", "PCMC_2"],
    y2="MOV_CMD",
    labels=["PC 1", "PC 2"],
    y2labels=["MOV"],
    xlabel="Time [s]",
    ylabel="Pressure [psia]",
    y2label="Command [-]",
    title="Pressure and Valve Command",
    xlim=(2.0, 8.0),
    ylim=(0.0, 500.0),
    y2lim=(-0.1, 1.1),
    theme="light",
    save="pressure_command.svg",
    show=False,
)

For module-level plotting:

fplt.plot(
    "hotfire.h5",
    x="time",
    y="PCMC_1",
)

For trace-only plotting:

fplt.plot([pc, pc_filtered, redline])

Plot limits only change what is displayed; they do not window or modify the underlying trace data:

fplt.plot([pc, oipt], xlim=(2.0, 6.5))

Multidimensional datasets, axes, and slices

FullPlot can plot and trace 2D or higher-dimensional datasets by selecting one dimension to vary and holding the other dimensions fixed.

The two key arguments are:

Argument Meaning
axis The dataset dimension that remains as the plotted line direction.
slice A dictionary of {dimension_index: fixed_index} values used to hold the other dimensions fixed.

For a dataset with shape:

(chamber_pressure, mixture_ratio, expansion_ratio, ambient_pressure, nfz)

the dimension numbers are:

axis 0 -> chamber_pressure
axis 1 -> mixture_ratio
axis 2 -> expansion_ratio
axis 3 -> ambient_pressure
axis 4 -> nfz

So this call plots a line that varies along chamber pressure:

run.plot(
    x="axes/chamber_pressure",
    y="outputs/thrust_coefficient",
    axis=0,
    slice={
        1: 12,  # fixed mixture_ratio index
        2: 10,  # fixed expansion_ratio index
        3: 3,   # fixed ambient_pressure index
        4: 0,   # fixed nfz index
    },
    xlabel="Chamber Pressure [Pa]",
    ylabel="Thrust Coefficient [-]",
)

The dimension selected by axis is the dimension that becomes the line. The dimensions listed in slice are reduced to one fixed index.

Creating traces from multidimensional data

trace(...) accepts the same axis and slice arguments as plot(...). This makes it possible to create reusable traces from multidimensional map data and then plot them together.

import fullplot as fplt

psia_to_pa = 6894.75728

file = fplt.open("sizer_lookups.h5")
result = file.at("/engine_lookup")

pc_psia = result.read("axes/chamber_pressure") / psia_to_pa

cf_eps_4 = result.trace(
    y="outputs/thrust_coefficient",
    x=pc_psia,
    axis=0,
    slice={
        1: 12,  # mixture_ratio index
        2: 8,   # expansion_ratio index
        3: 3,   # ambient_pressure index
        4: 0,   # nfz index
    },
    name="eps = 4",
)

cf_eps_6 = result.trace(
    y="outputs/thrust_coefficient",
    x=pc_psia,
    axis=0,
    slice={
        1: 12,
        2: 14,
        3: 3,
        4: 0,
    },
    name="eps = 6",
)

result.plot(
    y=[cf_eps_4, cf_eps_6],
    xlabel="Chamber Pressure [psia]",
    ylabel="Thrust Coefficient [-]",
    title="Thrust Coefficient vs Chamber Pressure",
)

This is equivalent to manually extracting:

cf[:, 12, 8, 3, 0]   # eps = 4 trace
cf[:, 12, 14, 3, 0]  # eps = 6 trace

but keeps the plotting workflow trace-based.

Selecting nearest physical values

slice uses integer indices, not physical axis values. If you want to select the nearest value on an axis, use a small helper:

import numpy as np


def nearest_index(values, target):
    values = np.asarray(values, dtype=float)
    return int(np.argmin(np.abs(values - target)))

Example:

mr = result.read("axes/mixture_ratio")
eps = result.read("axes/expansion_ratio")
pamb_psia = result.read("axes/ambient_pressure") / psia_to_pa
nfz = result.read("axes/nfz")

mr_i = nearest_index(mr, 2.5)
pamb_i = nearest_index(pamb_psia, 14.7)
nfz_i = nearest_index(nfz, 0)

traces = []

for target_eps in [2, 4, 6, 8, 10]:
    eps_i = nearest_index(eps, target_eps)

    traces.append(
        result.trace(
            y="outputs/thrust_coefficient",
            x=pc_psia,
            axis=0,
            slice={
                1: mr_i,
                2: eps_i,
                3: pamb_i,
                4: nfz_i,
            },
            name=f"eps = {eps[eps_i]:.1f}",
        )
    )

result.plot(
    y=traces,
    xlabel="Chamber Pressure [psia]",
    ylabel="Thrust Coefficient [-]",
    title="Thrust Coefficient vs Chamber Pressure",
)

Common slicing patterns

For a dataset ordered as:

(chamber_pressure, mixture_ratio, expansion_ratio, ambient_pressure, nfz)

these are common one-dimensional traces:

cf[:, mr_i, eps_i, pamb_i, nfz_i]      # vary chamber pressure
cf[pc_i, :, eps_i, pamb_i, nfz_i]      # vary mixture ratio
cf[pc_i, mr_i, :, pamb_i, nfz_i]       # vary expansion ratio
cf[pc_i, mr_i, eps_i, :, nfz_i]        # vary ambient pressure
cf[pc_i, mr_i, eps_i, pamb_i, :]       # vary nfz

The matching FullPlot arguments are:

# Vary chamber pressure.
axis=0
slice={1: mr_i, 2: eps_i, 3: pamb_i, 4: nfz_i}

# Vary mixture ratio.
axis=1
slice={0: pc_i, 2: eps_i, 3: pamb_i, 4: nfz_i}

# Vary expansion ratio.
axis=2
slice={0: pc_i, 1: mr_i, 3: pamb_i, 4: nfz_i}

Slicing for heat maps

For heat maps, leave two dimensions unsliced. For example, to plot thrust coefficient as a function of mixture ratio and chamber pressure, hold expansion ratio, ambient pressure, and nfz fixed:

result.map(
    z="outputs/thrust_coefficient",
    x="axes/mixture_ratio",
    y="axes/chamber_pressure",
    slice={
        2: eps_i,
        3: pamb_i,
        4: nfz_i,
    },
    xlabel="Mixture Ratio [-]",
    ylabel="Chamber Pressure [Pa]",
    zlabel="Thrust Coefficient [-]",
)

Use xscale="log", yscale="log", or zscale="log" only when the displayed values on that axis are positive.


Heat maps

Plot a 2D dataset:

run.map(
    z="pressure_map",
    x="mixture_ratio",
    y="chamber_pressure",
    xlabel="Mixture Ratio [-]",
    ylabel="Chamber Pressure [Pa]",
    zlabel="Temperature [K]",
)

Stack several 1D datasets into a heat map:

run.map(
    z=["TC_1", "TC_2", "TC_3", "TC_4"],
    x="time",
    ylabel="Station Index",
    zlabel="Temperature [K]",
)

Use log scales when all displayed values are positive:

run.map(
    z="residual_map",
    x="iteration",
    y="case",
    zscale="log",
)

Time-dependent numerical fields and 3D surfaces

A distributed simulation may record mass_distribution, temperature, heat_flux, or aero_forces as multidimensional HDF5 datasets. FullPlot can read these directly; it does not require FullFlow at plotting time.

For FullFlow 4.0.3 output, numeric field histories have time on axis 0:

Field Dataset shape Interpretation
Mass or temperature (time, station) One scalar per station per timestep
Aerodynamic forces (time, station, 3) Three force components per station
Fixed final field (station,) or (station, 3) No time axis

FullFlow's State(np.ndarray) and StateArray are saved identically as numerical fields. The HDF5 field has a time_axis attribute and a reference to the time dataset. FullPlot uses this information where available, so you do not need to transpose time-first arrays just to make a heat map.

Plot a FullFlow field

import fullplot as fplt

run = fplt.open("2thermal_cells.h5").at("Thermal_Cells/transient")
field = "components/Nose_Thermal/temperature"
position = "components/Nose_Thermal/stations"

run.map(
    z=field,
    x="time",
    y=position,
    xlabel="Time [s]",
    ylabel="Axial Position [m]",
    zlabel="Temperature [K]",
)

run.plot(
    y=field,
    x="time",
    slice={1: 3},  # temperature at station index 3
    xlabel="Time [s]",
    ylabel="Temperature [K]",
)

run.surface(
    z=field,
    x="time",
    y=position,
    xlabel="Time [s]",
    ylabel="Axial Position [m]",
    zlabel="Temperature [K]",
)

map() renders the third variable as color; surface() draws a true 3D Matplotlib surface. Both accept slice=, save=, show=, and the usual title and label arguments. surface() returns the figure and 3D axes, not a browser-based interactive Plotly object. For (time, station, component), use slice={2: 0} to select a force component before plotting.

Axis selection and compatibility

For a 2D field, x and y must match its two coordinate dimensions (center or edge arrays are supported where appropriate). FullPlot uses coordinate lengths and available time_axis/time_dataset metadata to determine the orientation. If both orientations remain possible, provide orientation="xy" for data indexed [x, y] or orientation="yx" for [y, x]. A fixed station field recorded on every step may be reduced automatically to its unchanged one-dimensional coordinate array. For generic HDF5 data without axis hints, the established row/column behavior remains available.

plot() selects the time dimension automatically if present in the metadata; for other multidimensional data, supply axis= or slice= as needed. Numeric JSON-string array histories from older FullFlow HDF5 exports can also be read with read() and displayed without a conversion script. Unrelated text fields remain text.

The standalone example 15field_results.py creates a numeric HDF5 field and makes a heat map, a trace, and a 3D surface. You can also pass a FullFlow thermal example's HDF5 file as its first argument.


Map generation

FullPlot can generate simple rectangular-grid HDF5 maps.

The generated layout is intentionally generic:

demo_map.h5
└── properties
    ├── axes
    │   ├── pressure
    │   └── temperature
    ├── outputs
    │   ├── density
    │   └── enthalpy
    └── status
        ├── success
        └── message

Generate a map:

import fullplot as fplt

fplt.generate_map(
    "demo_map.h5",
    group="properties",
    axes=[
        fplt.Axis.linear("pressure", 1.0e5, 5.0e5, 5, units="Pa"),
        fplt.Axis.linear("temperature", 250.0, 500.0, 6, units="K"),
    ],
    constants={"gas_constant": 287.0},
    evaluate=lambda pressure, temperature, gas_constant: {
        "density": pressure / (gas_constant * temperature),
        "enthalpy": 1005.0 * temperature,
    },
    overwrite=True,
)

Axis helpers:

fplt.Axis.linear("temperature", start=250.0, stop=600.0, count=8, units="K")
fplt.Axis.log("pressure", start=1.0e5, stop=1.0e7, count=9, units="Pa")
fplt.Axis.values("mixture_ratio", values=[1.5, 2.0, 2.5, 3.0])

Use constants={...} for values that should be passed to every evaluation but should not become interpolation axes.

The evaluate(...) function must return a flat dictionary of scalar numeric outputs. Each key becomes one dataset in /outputs.

Example:

def evaluate(pressure, temperature, gas_constant):
    density = pressure / (gas_constant * temperature)
    return {"density": density}

generate_map(...) supports:

  • explicit output names with outputs=[...],
  • overwrite protection with overwrite=True,
  • interrupted-map continuation with resume=True,
  • configurable failure behavior with raise_errors=False,
  • optional compression,
  • metadata storage.

A robust long-running map call might look like this:

fplt.generate_map(
    "engine_map.h5",
    group="chamber",
    axes=[
        fplt.Axis.log("pressure", 1.0e5, 1.0e7, 25, units="Pa"),
        fplt.Axis.values("mixture_ratio", [1.5, 2.0, 2.5, 3.0]),
    ],
    constants={"area": 0.0039},
    outputs=["temperature", "gamma", "molecular_weight"],
    evaluate=evaluate_chamber,
    metadata={"description": "Chamber property map"},
    resume=True,
    raise_errors=False,
    fill_value=float("nan"),
)

Command-line inspection

FullPlot installs a small fullplot command for HDF5 inspection.

Print a tree:

fullplot hotfire.h5
fullplot hotfire.h5 --tree

List datasets:

fullplot hotfire.h5 --list

Inspect a root group:

fullplot engine_sim.h5 --root /Engine/transient/runs/startup --list

Limit tree depth:

fullplot engine_sim.h5 --max-depth 2

The CLI does not create plots. Use the Python API for plotting so scripts can control Matplotlib backends, figure editing, saving, and showing.


Examples

The repository includes four example folders:

examples/
├── hdf5_plotting/
├── linearization/
├── maps/
└── traces/

examples/hdf5_plotting/ demonstrates:

  • generating a synthetic HDF5 plotting file,
  • inspecting the tree and dataset list,
  • single-trace plots,
  • multiple-trace plots,
  • dual-axis plots,
  • 2D heat maps,
  • stacked 1D heat maps,
  • log axes and log color scales,
  • multidimensional line traces,
  • multidimensional slices,
  • native time-first field histories and 3D surface plots,
  • light theme plots,
  • module-level API calls,
  • saving figures.

examples/traces/ demonstrates:

  • generating synthetic hotfire-style sensor data,
  • extracting reusable traces,
  • filtering,
  • redlines/bluelines/yellowlines/greenlines,
  • command and sequence traces,
  • trace math and automatic resampling,
  • windowing,
  • scaling and offsetting,
  • derivatives,
  • saving processed traces,
  • missing-value handling,
  • shared TimeAxis alignment.

examples/maps/ demonstrates:

  • simple map generation,
  • linear/log/explicit axes,
  • constants,
  • metadata,
  • output discovery,
  • HDF5 layout inspection.

examples/linearization/ demonstrates discovering and reading saved FullFlow steady-state and transient state-space models.


Themes

FullPlot includes two themes:

run.plot(x="time", y="PCMC_1", theme="dark")
run.plot(x="time", y="PCMC_1", theme="light")

The dark theme is useful for quick interactive engineering plots. The light theme is better for reports, documents, and slides.


Units

FullPlot does not perform unit conversion.

It reads numeric arrays and uses labels provided by the user or stored in HDF5 attributes. This keeps FullPlot generic and avoids guessing how engineering units should be converted.

Recommended practice:

run.plot(
    x="time",
    y="PCMC_1",
    xlabel="Time [s]",
    ylabel="Pressure [psia]",
)

If you need converted data, convert explicitly with trace math:

pc_pa = pc.scale(6894.757, name="PCMC_1 [Pa]")

Limitations and design choices

FullPlot is intentionally small.

Current limitations:

  • HDF5 is the only supported file format.
  • The package focuses on numeric datasets.
  • There is no built-in unit conversion.
  • There is no built-in DAQ metadata standard.
  • Trace roles are plotting hints only.
  • Redlines and commands are not safety logic.
  • Map generation is for rectangular grids only.
  • Map outputs must be scalar numeric values.
  • Interpolation and filtering are intentionally simple and NumPy/SciPy based.
  • FullPlot does not attempt to replace specialized dashboards, data historians, or test-stand control software.

This is deliberate. The package is meant to be a simple bridge between HDF5 engineering data and Python plotting/processing workflows.


Documentation

Full documentation:

https://saakethramoju.github.io/softwares/fullplot/

Source code:

https://github.com/saakethramoju/FullPlot

PyPI:

https://pypi.org/project/fullplot/


License

FullPlot is released under the GNU General Public License v3.0 only (GPL-3.0-only). See LICENSE for the full text.

See THIRD_PARTY_LICENSES.md for dependency license notes.

Metadata

Release files for fullplot 2.0.1

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

Source distribution (sdist)

Source distribution for fullplot 2.0.1
File Size Uploaded Provenance Actions
fullplot-2.0.1.tar.gz 96.5 kB Without provenance Details for fullplot-2.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fullplot 2.0.1
File Interpreter ABI Platform Actions
fullplot-2.0.1-py3-none-any.whl Python 3 none any Details for fullplot-2.0.1-py3-none-any.whl

Total release size: 158.7 kB

Release files / fullplot-2.0.1.tar.gz

Download URL fullplot-2.0.1.tar.gz
Size 96.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4b9b2579c5c633964daf9ee22927bcb416b626cb73b6b0cba5cd379833092067
BLAKE2b-256 checksum
How to use checksums
efc0e5256e76d90a6a8d06e10760985be8e0d35e3ae04ca14f32e262131731a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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}

Release files / fullplot-2.0.1-py3-none-any.whl

Download URL fullplot-2.0.1-py3-none-any.whl
Size 62.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8754f93fd1bc9c982ec61cd6b0b4f14088fe03cca8fb3d2b167f6724f980e260
BLAKE2b-256 checksum
How to use checksums
c76ee01986d54908167e28c59539a4ec7a6ca1be9f04b73af2c8ef919c4263b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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}

Security for fullplot 2.0.1

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