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:
- ax
matplotlib.axes.Axes Axes assigned to this panel.
- fig
matplotlib.figure.Figure Parent figure.
- project
Project Optimization project;
project.fdtd_sessionprovides the data.- state
PanelState Snapshot of the current optimization history (unused; kept for symmetry with other panels).
- ax