plotmatrix (MathScript RT Module Function)

LabVIEW 2012 MathScript RT模块帮助

版本日期:June 2012



Owning Class: plots

Requires: MathScript RT Module



plotmatrix(x, attributes)

plotmatrix(x, y)

plotmatrix(x, y, attributes)


Generates rows and columns of scatter plots. plotmatrix(x, y) plots the columns of x against the columns of y.



Name Description
x Specifies a matrix you want to plot. The number of columns in x specifies the number of columns of scatter plots you want to generate.
y Specifies a matrix you want to plot. The number of columns in y specifies the number of rows of scatter plots you want to generate. length(y) must equal length(x).
attributes Specifies valid plot attributes. Order the plot attributes by color, point style, and line style. For example, 'bo-' specifies that the plot is blue, marks points with circles, and uses solid lines. attributes is a string that accepts a combination of the following values.

'b' Colors the plot blue.
'c' Colors the plot cyan.
'g' Colors the plot green.
'k' Colors the plot black.
'm' Colors the plot magenta.
'r' Colors the plot red.
'w' Colors the plot white.
'y' Colors the plot yellow.
'.' Marks points with dots.
'o' Marks points with circles.
'x' Marks points with crosses.
'+' Marks points with plus signs.
'*' Marks points with asterisks.
'-' Uses solid lines.
':' Uses dotted lines.
'-.' Uses dashed and dotted lines.
'--' Uses dashed lines.


The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine No (always ignored)
Supported on RT targets No


x = rand(10, 3);
y = rand(10, 2);
plotmatrix(x, y)

Related Topics