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
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
label | StringScalar | Yes | — | Display label for the data-tip row. |
value | Any | Yes | — | Value source, expression, or data vector shown by the row. |
format | StringScalar | No | "" | Optional numeric, datetime, duration, or text display format. |
Returns
| Name | Type | Description |
|---|---|---|
row | Any | Data-tip text row object with Label, Value, and Format properties. |
Errors
| Identifier | When | Message |
|---|---|---|
RunMat:dataTipTextRow:InvalidArgument | The label/format text is not scalar, or the argument count is not supported. | dataTipTextRow: invalid argument |
RunMat:dataTipTextRow:Internal | Internal data-tip row object construction fails. | dataTipTextRow: internal error |
How dataTipTextRow works
dataTipTextRow(label, value)creates a handle-class row object and stores an emptyFormatproperty so the renderer or host can use its default formatting.dataTipTextRow(label, value, format)stores the supplied display format string.labelandformataccept character vectors, string scalars, and scalar string arrays.Valueis preserved without reinterpretation, so property names such as'YData', numeric vectors, string values, function handles, and GPU-resident values remain available to downstream graphics code.- Returned rows support dot-property access and mutation for
Label,Value, andFormat; aliases refer to the same underlying handle object.
Options
Labelis the displayed row label.Valueis the data source, value vector, expression result, or property name used by the row.Formatis an optional numeric, datetime, duration, or text display format.
Does RunMat run dataTipTextRow on the GPU?
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.
GPU memory and residency
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.
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?⌄
No. RunMat preserves the supplied Value property as metadata, including GPU tensor handles, so constructing a row does not force 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 · axes · barh · cla · clf · colorcube · colororder · copyobj · daspect · datacursormode · fcontour · figure · fill3 · findobj · fsurf · gobjects · groot · hgload · hgsave · hidden · histogram2 · hold · line · linkaxes · openfig · opengl · pan · parula · patch · plotmatrix · plotyy · polarhistogram · polarplot · polarscatter · print · quiver3 · ribbon · saveas · savefig · sphere · stackedplot · subtitle · suptitle · textscatter · textscatter3 · triplot · waitbar · wordcloud · xline · xscale · xtickangle · xtickformat · xticklabels · xticks · yline · yscale · ytickangle · ytickformat · yticklabels · yticks · zoom
Open-source implementation
Unlike proprietary runtimes, every RunMat function is open-source. 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 an open-source runtime that executes MATLAB-syntax code blazing on any GPU. It is licensed under the Apache 2.0 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.