title (MathScript RT Module Function)

LabVIEW 2012 MathScript RT模块帮助

版本日期:June 2012

产品编号:373123C-0118

»查看产品信息
下载帮助
(仅限Windows)

Owning Class: plots

Requires: MathScript RT Module

Syntax

title(text)

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

obj = title(text)

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

Description

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.

Examples

Inputs

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.

Outputs

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

Details

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)
title('My Plot')

X = cos(0:0.1:10);
plot(X)
obj = title('My Plot', 'Color', 'w', 'BackgroundColor', 'k')

Related Topics

text
xlabel
ylabel
zlabel

文章是否对您有帮助?

没有帮助