Hardware Loop Plot

class HardwareLoopPlot(title=None)[source]

Bases: ABC, Generic[VT]

Base class for all plots visualized during hardware loop runtime.

Parameters:

title (str, optional) – Title of the hardware loop plot. If not specified, resorts to the default title of the plot.

prepare_plot()[source]

Prepare the figure for the hardware loop plot.

Returns: The prepared figure and axes to be plotted into.

Return type:

Tuple[Figure, NDArray[Shape[*, *], Any]]

update_plot(sample)[source]

Update the hardware loop plot.

Internally calls the abstract _update_plot() method.

Parameters:

sample (HardwareLoopSample) – Hardware loop sample to be plotted.

Raises:

RuntimeError – If the hardware loop is not set.

Return type:

None

property hardware_loop: HardwareLoop | None

Hardware loop this plot is attached to.

property title: str

Title of the hardware loop plot.