ConvergencePlotBuilder

Convenience helpers around ConvergencePlot for writing a PNG sibling artifact in the run directory. The interactive embed in the HTML report is handled by the report DSL — this writer only produces the static PNG for users who want an image they can drop into slides or share without a browser.

Substrate-level API — usable by any UI shell.

Functions

Link copied to clipboard

Build the plot wrapper for history. Returns null when no snapshot has a plottable (finite, non-sentinel) value.

Link copied to clipboard
fun write(history: List<SolverStateSnapshot>, path: Path): Boolean

Write the static PNG sibling artifact for history to path. Returns true on success, false when there's no plottable data or when the write throws.