pytyche.viz.plot_calibration

pytyche.viz.plot_calibration(calibrated_posterior, reference=None, ax=None)[source]

Plot the attached R(p) coverage-remapping curve.

Parameters:
  • calibrated_posterior (Any) – A posterior carrying a Calibration artifact.

  • reference (Any) – Optional posterior to plot alongside — its own R(p) curve when calibrated, else the nominal identity diagonal (raw claimed coverage).

  • ax (Axes | None) – Existing axes to draw into; None creates a new figure.

Return type:

Axes

Returns:

The axes containing one line per posterior.

Raises:

ValueError – When calibrated_posterior carries no calibration artifact.