dataTipTextRow — Create a data-tip text row object for customizing plot data tips.
dataTipTextRow(label, value) creates a MATLAB-compatible matlab.graphics.datatip.DataTipTextRow handle object with Label, Value, and Format properties. Use these rows with plot data-tip templates as RunMat's graphics template support expands.
Syntax
row = dataTipTextRow(label, value)
row = dataTipTextRow(label, value, format)Inputs
label- Type
StringScalar- Required
- Yes
- Description
- Display label for the data-tip row.
value- Type
Any- Required
- Yes
- Description
- Value source, expression, or data vector shown by the row.
format- Type
StringScalar- Required
- No
- Default
"auto"- Description
- Optional numeric, datetime, duration, or text display format.
Returns
row- Type
Any- Description
- Data-tip text row object with Label, Value, and Format properties.
Errors
RunMat:dataTipTextRow:InvalidArgument- When
- The label/format text is not scalar, or the argument count is not supported.
- Message
dataTipTextRow: invalid argument
RunMat:dataTipTextRow:Internal- When
- Internal data-tip row object construction fails.
- Message
dataTipTextRow: internal error
Behavior
dataTipTextRow(label, value) creates a handle-class row object and stores the documented default Format value auto.
dataTipTextRow(label, value, format) stores the supplied display format string.
label and format accept character vectors, string scalars, and scalar string arrays.
Documented text, scalar/vector, and function-handle Value sources are preserved without reinterpretation. Integer-vector support is classified as an evidence-based inference from the documented vector contract because the public page has no per-class data-type table.
GPU-resident Value sources require the data-tip-text-row-resident-value extension and remain untouched. Host nonvector numeric sources independently require data-tip-text-row-nonvector-value.
Returned rows support dot-property access and mutation for Label, Value, and Format; aliases refer to the same underlying handle object.
Properties
Label is the displayed row label.
Value is the data source, value vector, expression result, or property name used by the row.
Format is an optional numeric, datetime, duration, or text display format.
Limitations
DataTipTemplate attachment, source-length validation against chart data, and final numeric/datetime/duration rendering remain graphics-host integration work.
The public documentation does not resolve per-class complex-vector or GPU Value support; RunMat treats resident values as an explicit extension.
Execution and residency
dataTipTextRow constructs metadata. It stores the supplied value object as-is, including GPU-resident tensor handles, and does not gather numeric payloads.
dataTipTextRow is metadata-only. It does not inspect, gather, or convert the supplied Value property, so GPU-resident values remain represented by their existing handles.
Object construction terminates numeric fusion because the result is a graphics metadata object.
Supplying a GPU-resident value preserves the handle in the returned object's Value property only when the resident-value extension is enabled.
Examples
Create a row that reads from plotted Y data
row = dataTipTextRow('Speed', 'YData', '%.2f');
row.LabelExpected output:
ans =
"Speed"Create a row from explicit values
values = [10 20 30];
row = dataTipTextRow('Amplitude', values);
row.Format = '%.1f';Expected output:
% row is a DataTipTextRow handle objectUsing dataTipTextRow with coding agents
Open a RunMat example with live inputs, then ask the agent to explain how dataTipTextRow changes the result.
Run a small dataTipTextRow example, explain the result, then change one input and compare the output.
FAQ
Does dataTipTextRow render data tips by itself?⌄
No. It creates the row object used by data-tip templates. Rendering and interactive data cursor behavior are handled by graphics hosts and future template integration.
Does it gather GPU data?⌄
Not in strict compatibility mode. With the data-tip-text-row-resident-value extension enabled, RunMat preserves the supplied GPU handle as metadata without a host round trip.
Related Plotting functions
2D Charts
area · bar · errorbar · heatmap · hist · histogram · loglog · pie · plot · scatter · semilogx · semilogy · stairs · stem
Other
addpoints · ancestor · animatedline · autumn · axes · barh · bone · caxis · cla · clf · clim · colorcube · colororder · cool · copper · copyobj · cylinder · daspect · datacursormode · drawnow · fcontour · figure · fill · fill3 · findobj · fsurf · gobjects · gray · groot · hgload · hgsave · hidden · histogram2 · hold · hot · inferno · isgraphics · ishandle · jet · line · lines · linkaxes · magma · openfig · opengl · pan · parula · patch · pink · plasma · plotmatrix · plotyy · polarhistogram · polarplot · polarscatter · print · quiver3 · ribbon · saveas · savefig · sphere · spring · stackedplot · subtitle · summer · suptitle · text · textscatter · textscatter3 · triplot · turbo · viridis · waitbar · winter · wordcloud · xlabel · xlim · xline · xscale · xtickangle · xtickformat · xticklabels · xticks · ylabel · ylim · yline · yscale · ytickangle · ytickformat · yticklabels · yticks · zlim · zoom
Source you can read
Every RunMat function's source is public. Read exactly how dataTipTextRow is executed, line by line, in Rust.
- View the source for dataTipTextRow in Rust on GitHub
- Learn how the RunMat runtime works
- Found a bug? Open an issue with a minimal reproduction.
About RunMat
RunMat is a runtime that executes MATLAB-syntax code fast on any GPU. The runtime is free for individuals, including freelancers; students and faculty at an academic institution, for teaching or research there; contributors to an open-source project, for work on that project; organizations with 250 or fewer people and US$10M or less in annual revenue; and anyone, for non-production use. See runmat.com/license.
- RunMat automatically optimizes your math for GPU execution on Apple, Nvidia, and AMD hardware. No code changes needed. Simulations that took hours now take minutes.
- Start running code in seconds. RunMat runs in the browser, on the desktop, or from the CLI. No license server, no IT ticket.