# plotcoord (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

plotcoord(a, xy)

plotcoord(a, xy, attributes)

Legacy Name: `gplot`

## Description

Generates a plot of coordinates using an adjacency matrix.

Examples

## Inputs

Name Description
a Specifies the adjacency matrix. a is an n-by-n matrix, where n equals the number of vertices in the plot. If vertices i and j are adjacent, a(i, j) is non-zero. Otherwise, a(i, j) is zero. length(a) must equal length(xy).
xy Specifies the coordinates for each vertex. xy is an n-by-2 matrix, where n equals the number of vertices in the plot. The first and second column of xy specify the x- and y-coordinates, respectively. length(xy) must equal length(a).
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.

## Details

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

## Examples

a = [0, 1, 1, 1, 0, 0, 0;...
1, 0, 0, 1, 1, 0, 0;...
1, 1, 0, 1, 0, 1, 0;...
1, 1, 1, 0, 1, 1, 1;...
0, 1, 0, 1, 0, 0, 1;...
0, 0, 1, 1, 0, 0, 1;...
0, 0, 0, 1, 1, 1, 0];
xy = [-0.5 0.866; 0.5 0.866; -1 0; 0 0; 1 0; -0.5 -0.866; 0.5 -0.866];
plotcoord(a, xy, 'bo--')