stanza.plotter.backends.utils
Shared utilities for plotting backends.
This module centralizes small, reusable helpers used by multiple plotting backends to keep implementations minimal and consistent.
Module Contents
Classes
Functions
Data
LINE_PLOT_WIDTH
LINE_PLOT_HEIGHT
HEATMAP_WIDTH
HEATMAP_HEIGHT
API
Value: 800
Value: 400
Value: 800
Value: 600
Plot specification with type-safe fields.
Value: None
Value: None
Value: None
Value: None
Value: None
Value: None
Value: None
Value: None
Value: None
Value: float(...)
Value: float(...)
Complete plot state: source, figure, and spec in one place.
Single source of truth for a plot’s data, visualization, and configuration. Ownership is clear: whoever has the PlotState owns the entire plot.
Value: None
Value: None
Value: None
Calculate rect sizes and update color range for heatmap data.
Parameters:
New data to add (x, y, value)
Existing data in the data source
Plot specification with dx, dy, value_min, value_max
Returns:
Updated data with width and height fields added
Create a 1D line plot.
Returns complete PlotState with source, figure, and spec.
Create a 2D heatmap plot.
Returns complete PlotState with source, figure, and spec.

