ibfoamrig.plot.plot_residuals#

ibfoamrig.plot.plot_residuals(residuals, *, fields=None, labels='residuals', ax=None)[source]#

Plots residuals against time on logarithmic scale.

Each residual column becomes one line. Values that were not solved and non-positive values leave gaps instead of dropping to zero.

Parameters:
  • residuals (ResidualData) – The residuals to plot.

  • fields (Sequence[str] | None) – Residual columns to plot. If None, all residuals are plotted.

  • labels (str | AxisLabels | None) – A preset name or AxisLabels. Defaults to the "residuals" preset.

  • ax (Axes | None) – Axes to draw on. If None, a new figure is created.

Returns:

The axes drawn on.

Raises:
  • TypeError – If fields is a single string.

  • KeyError – If a field is not a residual column, or labels names an unknown preset.

  • ValueError – If no fields are selected.

Return type:

Axes