setup#

abstractmethod Panel.setup(ax: Axes, fig: Figure, project) None#

Initialise the panel on its assigned axes.

Called exactly once by GraphicalVisualizer after the figure has been created. Subclasses should configure static labels/titles, and create any persistent artists (lines, images, text) they will later mutate in update.

Parameters:
axmatplotlib.axes.Axes

Axes assigned to this panel.

figmatplotlib.figure.Figure

Parent figure (useful for adding colorbars).

projectProject

The optimization project, e.g. for inspecting the parametrization or FDTD session.