ILNumerics Ultimate VS

BoxPlotUpdate Method

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Call this method to update horizontal or vertical position of the box plots X and the underlying data Data.

[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 void Update(
	InArray<float> X = null,
	InArray<float> Data = null
)

Parameters

X (Optional)
Type: ILNumericsInArraySingle
[optional] Row vector that contains horizontal or vertical positions of each box plot.
Data (Optional)
Type: ILNumericsInArraySingle
[optional] Matrix that contains data. For each column a box plot is drawn.
Exceptions

ExceptionCondition
ArgumentException If input argument X is not a row vector.
ArgumentException If input argument Data is not a matrix.
ArgumentException If number of elements in rows of input argument Data and X is not equal.
ArgumentException If number of elements in columns of input argument Data are less than 4.
Remarks

[ILNumerics Drawing2 Toolbox]

Examples

Creating an BoxPlot object

private void ilPanel1_Load(object sender, EventArgs e)
{
Array<float> X = linspace<float>(1, 3, 2);
Array<float> Data = new float[,] { { 1, 1, 1, 1 }, { 1, 1, 1, 1 } };
var plotCube = ilPanel1.Scene.Add(new PlotCube());
var boxPlot = plotCube.Add(new BoxPlot(X, Data, boxWidth: 1, fillAreaColor: Color.Olive,
medianColor: Color.DarkRed, medianStyle: DashStyle.Dashed, medianWidth: 4, whiskerStyle: DashStyle.Dotted,
pointColor: Color.DarkRed, drawVertical: false, drawScatteredPlot: true));
Data = new float[,] { { 1, 3, 4, 5, 7 }, { 10, 2, 1, 0, 2, } };
boxPlot.Update(Data: Data);
}
See Also

Reference