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

fill (MathScript RT Module Function)

LabVIEW 2010 Help

Edition Date: June 2010

Part Number: 371361G-01

»View Product Info

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.

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


 

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