Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

fill (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the plots class.

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.

This function is not supported in the LabVIEW Run-Time Engine. This function can remain in your scripts when you build a stand-alone application or shared library, but the LabVIEW Run-Time Engine does not execute this function.

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')


Resources


 

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