![]() | Download Help (Windows Only) |
Owning Class: plots
Requires: MathScript RT Module
ylabel(text)
ylabel(text, name1, value1, ..., nameN, valueN)
obj = ylabel(text)
obj = ylabel(text, name1, value1, ..., nameN, valueN)
Labels the y-axis of a plot. ylabel(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 y-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 reference to a text object. |
To display a label for the y-axis, the y-scale must be visible. Use the Visible attribute to specify whether the y-scale is visible.
The following table lists the support characteristics of this function.
Supported in the LabVIEW Run-Time Engine | No (returns error or is ignored) |
Supported on RT targets | No |
X = [0:0.01:1];
Y = X.*X;
plot(X, Y)
ylabel('Y-Axis')
X = sin(0:0.01:1);
plot(X)
obj = ylabel('Y-Axis', 'FontSize', 24, 'Color', 'g')
Helpful
Not Helpful