ILNumerics - Technical Computing with .NET

High Performance Framework for Visualization

and Computing in Industry and Science

 

Fill Area Plot

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

 

Using ILFillArea

All you need to do is create your very own ILFillArea 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 ILFillArea object. Note, that the positions array is required, while the baseline is optional.

 

The following plot shows two ILFillArea 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 ILFillArea derives from ILGroup, you have access to all configuration options of common group objects.

 

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

More Information

Several ILFillArea 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.

 

For more detailed information and examples check out