update#

MonitorPanel.update(ax: Axes, fig: Figure, project, state: PanelState) None#

Fetch the latest data from the FDTD session and refresh the panel.

Errors during fetching/plotting are caught and rendered as a red message inside the panel rather than propagated, so a single misconfigured monitor doesn’t tear down the whole visualization.

Parameters:
axmatplotlib.axes.Axes

Axes assigned to this panel.

figmatplotlib.figure.Figure

Parent figure.

projectProject

Optimization project; project.fdtd_session provides the data.

statePanelState

Snapshot of the current optimization history (unused; kept for symmetry with other panels).