Owning Class: plots
Requires: MathScript RT Module
title(text)
title(text, name1, value1, ..., nameN, valueN)
obj = title(text)
obj = title(text, name1, value1, ..., nameN, valueN)
Adds a title to the current plot. title(text, name1, value1, ..., nameN, valueN) sets the text attributes according to the attribute names and values you specify.
| Name | Description |
|---|---|
| text | Specifies the title you want to add to the current plot. text is a string. |
| name | Specifies the name of the attribute. name is a string. |
| value | Specifies the value of the attribute. |
| Name | Description |
|---|---|
| obj | Returns the reference to the title LabVIEW creates. obj is a reference to a text object. |
This function is not supported in the LabVIEW Run-Time Engine if you request an output from the function. Either do not request an output or remove this function from scripts before you build a stand-alone application or shared library.
X = [0:0.01:1];
Y = X.*X;
plot(X, Y)
title('My Plot')
X = cos(0:0.1:10);
plot(X)
obj = title('My Plot', 'Color', 'w', 'BackgroundColor', 'k')