Owning Class: plots
Requires: MathScript RT Module
xlabel(text)
xlabel(text, name1, value1, ..., nameN, valueN)
obj = xlabel(text)
obj = xlabel(text, name1, value1, ..., nameN, valueN)
Labels the x-axis of a plot. xlabel(text, name1, value1, ..., nameN, valueN) sets the text attributes according to the attribute names and values you specify.
| Name | Description |
|---|---|
| text | Specifies the label you want to use for the x-axis. 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 label LabVIEW creates. obj is a text object. |
To display a label for the x-axis, the x-scale must be visible. Use the Visible attribute to specify whether the x-scale is visible.
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)
xlabel('X-Axis')
X = sin(0:0.01:1);
plot(X)
obj = xlabel('X-Axis', 'FontSize', 24, 'Color', 'g')