Skip to content

voiage.plot.voi_curves.plot_coss

plot_coss([positional or keyword] result: CossResultV1 | CossPlotDataV1 = None, [keyword-only] ax: Axes | None = None, [keyword-only] xlabel: str = 'Sample size', [keyword-only] ylabel: str = 'Expected net benefit of sampling', [keyword-only] title: str = 'Curve of Optimal Sample Size') -> Axes

Render the governed COSS plotting contract with accessible encodings.

The plot uses colour, marker shape, and line style together so feasible, infeasible, and selected designs remain distinguishable without relying on colour alone. The input is the backend-independent plot payload embedded in :class:~voiage.contracts.CossResultV1, or that payload directly.

Parameters:

  • result CossResultV1 | CossPlotDataV1
  • ax Axes | None (default: None)
  • xlabel str (default: 'Sample size')
  • ylabel str (default: 'Expected net benefit of sampling')
  • title str (default: 'Curve of Optimal Sample Size')

Returns: Axes