update#

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

Push the latest gradient-norm history into the persistent line.

Switches to a logarithmic y-axis when auto_log is enabled and every observed value is strictly positive. Updates the title to flag gradient-free runs.

Parameters:
axmatplotlib.axes.Axes

Axes assigned to this panel.

figmatplotlib.figure.Figure

Parent figure (unused).

projectProject

Optimization project (unused).

statePanelState

Snapshot of the current optimization history.