oa::plot::Axes
Class published by the oa::plot namespace.
Public Methods
void oa::plot::Axes::heatmap(oa::Span<const oa::F32> inValues, oa::I32 inRows, oa::I32 inCols, const HeatmapStyle & inStyle = {})void oa::plot::Axes::histogram(oa::Span<const oa::F32> inValues, oa::I32 inBins = 16, const BarStyle & inStyle = {})void oa::plot::Axes::plot(oa::Span<const oa::F32> inX, oa::Span<const oa::F32> inY, const LineStyle & inStyle = {})Examples
Constructor & Destructor Documentation
Public Method Documentation
No public source comment is attached to this declaration.
Returns
voidThe declared return value.
category bars at x = 0..n-1. Negative values extend below zero.
Parameters
inYoa::Span<const oa::F32>—
inStyleconst BarStyle &Default: {}
Returns
voidThe declared return value.
border / frame color around the axes rect. Defaults to no border.
Parameters
inColoroa::Color—
Returns
voidThe declared return value.
Additional caption line under the image (used by the classify tutorial to show the ground-truth label when prediction is wrong). alpha zero uses theme secondary text.
Parameters
inTextconst char *—
inColoroa::ColorDefault: = {0.0F, 0.0F, 0.0F, 0.0F}
Returns
voidThe declared return value.
grid and labeled-series legend are enabled by default.
Parameters
inVisibleboolDefault: true
Returns
voidThe declared return value.
Dense row-major heatmap. This is the compact plotting contract for confusion matrices and other evaluation tables.
Parameters
inValuesoa::Span<const oa::F32>—
inRowsoa::I32—
inColsoa::I32—
inStyleconst HeatmapStyle &Default: {}
Returns
voidThe declared return value.
histogram convenience: finite samples are binned on the host into an ordered bar artist. Metric histories are intentionally small telemetry.
Parameters
inValuesoa::Span<const oa::F32>—
inBinsoa::I32Default: 16
inStyleconst BarStyle &Default: {}
Returns
voidThe declared return value.
Image grid call. The texture is sampled directly by oa::Ui into this axes subregion; Figure does not read its pixels back for composition.
Parameters
inTexconst oa::Texture &—
Returns
voidThe declared return value.
No public source comment is attached to this declaration.
Parameters
inVisibleboolDefault: true
Returns
voidThe declared return value.
Fixed data limits. Invalid or degenerate input restores automatic limits.
Parameters
inXMinoa::F32—
inXMaxoa::F32—
inYMinoa::F32—
inYMaxoa::F32—
Returns
voidThe declared return value.
Explicit-X line plot. X and Y must be non-empty and have equal length.
Parameters
inXoa::Span<const oa::F32>—
inYoa::Span<const oa::F32>—
inStyleconst LineStyle &Default: {}
Returns
voidThe declared return value.
Line plot of N values (y[i] vs i). Repeated calls append ordered series.
Parameters
inYoa::Span<const oa::F32>—
inStyleconst LineStyle &Default: {}
Returns
voidThe declared return value.
Point cloud / metric scatter. X and Y must have equal length.
Parameters
inXoa::Span<const oa::F32>—
inYoa::Span<const oa::F32>—
inStyleconst ScatterStyle &Default: {}
Returns
voidThe declared return value.
title above the axes. Color controls the text color (red/green for the classify-tutorial correct/wrong indicator). alpha zero uses theme text.
Parameters
inTextconst char *—
inColoroa::ColorDefault: = {0.0F, 0.0F, 0.0F, 0.0F}
Returns
voidThe declared return value.
Centered X / Y axis labels (below / left of the plot). Y labels render bottom-to-top; both reserve space rather than overlaying plot content.
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.