Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

xlabel (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the plots class.

Syntax

xlabel(text)

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

obj = xlabel(text)

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

Description

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.

Details

Examples

Inputs

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.

Outputs

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

Details

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.

Examples

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

Related Topics

text
title
ylabel
zlabel


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit