ILNumerics - Technical Application Development
Assembly: ILNumerics.Toolboxes.Drawing2 (in ILNumerics.Toolboxes.Drawing2.dll) Version: 5.5.0.0 (5.5.7503.3146)
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: ILNumericsInArrayDouble
(1 x n) matrix, containing x coordinates of arbitrary two dimensional curve - y
- Type: ILNumericsInArrayDouble
(1 x n) matrix, containing y coordinates of arbitrary two dimensional curve - baseline (Optional)
- Type: SystemSingle
[optional] line that defines upper or lower limit of fill area depending on its value, default: 0 - lineWidth (Optional)
- Type: SystemInt32
[optional] line width, default: 1px - lineColor (Optional)
- Type: SystemNullableColor
[optional] line color, default: auto - fillColor (Optional)
- Type: SystemNullableColor
[optional] fill color, default: auto - tag (Optional)
- Type: SystemObject
[optional] identifying the FillArea object in the scene graph
Exceptions
Exception | Condition |
---|---|
ArgumentException | If input argument x is not a (1 x n) array. |
ArgumentException | If input argument y is not a (1 x n) array. |
ArgumentException | If 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