Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

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

fill(x, y, color)

fill(x1, y1, color1, x2, y2, color2, ... , xn, yn, colorn)

Description

Generates a filled polygon plot.

Details

Examples

Inputs

Name Description
x Specifies the x-coordinates of the polygon you want to plot. x is a vector or matrix. size(x) must equal size(y).
y Specifies the y-coordinates of the polygon you want to plot. y is a vector or matrix.
color Specifies a valid color attribute for the plot. color is a string that accepts the following values.

'b' Blue
'c' Cyan
'g' Green
'k' Black
'm' Magenta
'r' Red
'w' White
'y' Yellow

Details

If you want to plot more than one filled polygon, use the fill(x1, y1, color1, x2, y2, color2, ... , xn, yn, colorn) syntax. x1, x2, y1, y2, and so on can be vectors or matrices.

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

x = [0.5, 1, 0.5, 0];
y = [0, 0.5, 1, 0.5];
fill(x, y, 'c')

x = [2 3; 4 5; 3 4];
y = [4 3; 5 4; 4 2];
fill(x, y, 'm')


 

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