Industrial Data Science
in C# and .NET:
Simple. Fast. Reliable.

ILNumerics - Technical Computing

Modern High Performance Tools for Technical

Computing and Visualization in Industry and Science

# Fill Area Plot

FillArea is used to fill a specified area below or above an arbitrary two dimensional curve.

## Using FillArea

All you need to do is create your very own FillArea object and provide its constructor with a [$2$ x $n$] positions array, containing the data you wish to visualize. The first row of the positions array will be interpreted as x-coordinates while the second row will be interpreted as the corresponding y-coordinates.

To determine the size of the fill area, you may also specify the value of its baseline. The default value of the baseline is set to zero.

In the example below you can see how the fill area is limited by a function graph and the baseline with a value of zero.

Use the Update() method, to modify the positions array and baseline of an already existing FillArea object. Note, that the positions array is required, while the baseline is optional.

The following plot shows two FillArea objects that are based on the same function. However, the baselines were set to two different values.

### Optional Parameters

According to your needs, you may further customize your plot by setting properties such as the width and color of the border line as well as the color of the fill area.

### Further Configurations

Since FillArea derives from Group, you have access to all configuration options of common group objects.

In the graph below two FillArea objects are plotted on top of each other. To differently color in a particular section, the positions array of the second FillArea object exhibits a decreased range.

Several FillArea constructor overloads exist. Instead of a [$2$ x $n$] positions array, you may enter two one dimensional positions arrays with the same number of elements.