ILNumerics Ultimate VS

FillArea Constructor (InArray<Double>, InArray<Double>, Single, Int32, Nullable<Color>, Nullable<Color>, Object)

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Constructor defines FillArea using the one dimensional arrays x and y.

[ILNumerics Drawing2 Toolbox]

Namespace:  ILNumerics.Drawing.Plotting
Assembly:  ILNumerics.Toolboxes.Drawing2 (in ILNumerics.Toolboxes.Drawing2.dll) Version: 5.5.0.0 (5.5.7503.3146)
Syntax

public FillArea(
	InArray<double> x,
	InArray<double> y,
	float baseline = 0f,
	int lineWidth = 1,
	Nullable<Color> lineColor = null,
	Nullable<Color> fillColor = null,
	Object tag = null
)

Parameters

x
Type: ILNumerics.InArray<Double>
(1 x n) matrix, containing x coordinates of arbitrary two dimensional curve
y
Type: ILNumerics.InArray<Double>
(1 x n) matrix, containing y coordinates of arbitrary two dimensional curve
baseline (Optional)
Type: System.Single
[optional] line that defines upper or lower limit of fill area depending on its value, default: 0
lineWidth (Optional)
Type: System.Int32
[optional] line width, default: 1px
lineColor (Optional)
Type: System.Nullable<Color>
[optional] line color, default: auto
fillColor (Optional)
Type: System.Nullable<Color>
[optional] fill color, default: auto
tag (Optional)
Type: System.Object
[optional] identifying the FillArea object in the scene graph
Exceptions

ExceptionCondition
ArgumentExceptionIf input argument x is not a (1 x n) array.
ArgumentExceptionIf input argument y is not a (1 x n) array.
ArgumentExceptionIf input arguments x and y do not have the same size.
Remarks

[ILNumerics Drawing2 Toolbox]

Examples

Creation of an FillArea object

///
private void ilPanel1_Load(object sender, EventArgs e) {
    // create data
    Array<double> x = linspace(0, 3 * pi, 100);
    Array<double> y = sin(x[0,full]);
    // create plot cube
    var myPlotCube = ilPanel1.Scene.Add(new PlotCube());
    // create an FillArea object
    var myFillArea = myPlotCube.Add(new FillArea(x, y, baseline: -1, lineWidth: 2,lineColor: Color.DarkGreen, fillColor: Color.SeaGreen));
}
See Also

Reference