From 09:00 PM Friday, August 7 - 10:30 AM CST Saturday, August 8, will be undergoing system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

scatter (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


scatter(x, y)

scatter(x, y, size)

scatter(x, y, attributes)

scatter(x, y, size, attributes)


Generates a scatter plot.



Name Description
x Specifies a vector you want to plot.
y Specifies a vector you want to plot. length(y) must equal length(x).
size Specifies the point size (0-5).
attributes Specifies valid plot attributes. Order the plot attributes by color and point style. For example, 'bo' specifies that the plot is blue and marks points with circles. 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.


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, 1);
y = rand(10, 1);
scatter(x, y, 3)

Related Topics



Not Helpful