oa::plot::Figure
Class published by the oa::plot namespace.
Public Types
Public Methods
Examples
Constructor & Destructor Documentation
Public Method Documentation
access the (row, col) axes. rows and cols are 0-indexed.
Parameters
inRowoa::I32—
inColoa::I32—
Returns
Axes &The declared return value.
No public source comment is attached to this declaration.
Parameters
inRowoa::I32—
inColoa::I32—
inWoa::U32—
inHoa::U32—
Returns
RectThe declared return value.
No public source comment is attached to this declaration.
Returns
oa::I32The declared return value.
── layout query (used by impl + tutorials) ──────────────────────────
Returns
const FigureConfig &The declared return value.
No public source comment is attached to this declaration.
Returns
oa::Result<oa::Image>The declared return value.
Render the fixed-size figure into a semantic RGBA image. The result is a normalized Float32 [1, 4, height, width] oa::Image and may be passed to oa::Viewer, Vision operations, or an image encoder. This semantic-image sink performs one terminal GPU readback and upload; show() remains GPU-resident. Every label uses the same generated coverage data as interactive text.
Parameters
inEngineoa::Engine &—
Returns
oa::Result<oa::Image>The declared return value.
replay the complete figure directly into an active oa::Ui GPU frame. The configured aspect ratio and all title/label bands remain stable on resize.
Parameters
inWidthoa::U32—
inHeightoa::U32—
inUi::oa::Ui &—
Returns
voidThe declared return value.
No public source comment is attached to this declaration.
Returns
oa::I32The declared return value.
No public source comment is attached to this declaration.
Parameters
inPathconst char *—
Returns
oa::StatusThe declared return value.
Headless GPU render -> PNG. The explicit overload completes pending producers through the supplied engine; the convenience overload uses the active operation context. One readback occurs only after composition. output includes raster bases, ordered line/scatter/bar artists, heatmaps, legends, figure/axes titles and labels, and captions.
Parameters
inEngineoa::Engine &—
inPathconst char *—
Returns
oa::StatusThe declared return value.
open an interactive window, render until closed. Returns when the user closes the window or the run loop exits.
Returns
oa::StatusThe declared return value.
Centered figure-level title and labels. Y labels render bottom-to-top. The title also replaces the interactive window name.
Parameters
inTextconst char *—
Returns
voidThe declared return value.
No public source comment is attached to this declaration.
Parameters
inTextconst char *—
Returns
voidThe declared return value.
No public source comment is attached to this declaration.
Parameters
inTextconst char *—
Returns
voidThe declared return value.