From 7:00 PM CST Friday, January 24th - 7:00 PM CST Sunday, January 26th, ni.com will be undergoing system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

ylabel (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: plots

Requires: MathScript RT Module

Syntax

ylabel(text)

ylabel(text, name1, value1, ..., nameN, valueN)

obj = ylabel(text)

obj = ylabel(text, name1, value1, ..., nameN, valueN)

Description

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.

Details

Examples

Inputs

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.

Outputs

Name Description
obj Returns the reference to the label LabVIEW creates. obj is a reference to a text object.

Details

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

Examples

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')

Related Topics

text
title
xlabel
zlabel

WAS THIS ARTICLE HELPFUL?

Not Helpful