ILNumerics Ultimate VS

BoxPlot Constructor (InArrayDouble, InArrayDouble, Double, Boolean, Boolean, NullableColor, NullableColor, NullableColor, NullableColor, NullableColor, Int32, Int32, Int32, Single, DashStyle, DashStyle, DashStyle, Object)

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Constructor defines BoxPlot on the basis of the row vector X and the matrix 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 BoxPlot(
	InArray<double> X,
	InArray<double> Data,
	double boxWidth = 0,6,
	bool drawScatteredPlot = false,
	bool drawVertical = true,
	Nullable<Color> fillAreaColor = null,
	Nullable<Color> frameColor = null,
	Nullable<Color> medianColor = null,
	Nullable<Color> whiskerColor = null,
	Nullable<Color> pointColor = null,
	int frameWidth = 1,
	int medianWidth = 2,
	int whiskerWidth = 1,
	float pointSize = 5f,
	DashStyle frameStyle = DashStyle.Solid,
	DashStyle medianStyle = DashStyle.Solid,
	DashStyle whiskerStyle = DashStyle.Dashed,
	Object tag = null
)

Parameters

X
Type: ILNumericsInArrayDouble
Row vector that contains horizontal or vertical positions of each box plot.
Data
Type: ILNumericsInArrayDouble
Matrix that contains data. For each column a box plot is drawn.
boxWidth (Optional)
Type: SystemDouble
[optional] Width of box plots, default: 0.6.
drawScatteredPlot (Optional)
Type: SystemBoolean
[optional] Draws an additional scattered plot based on Data when set to true, default: false.
drawVertical (Optional)
Type: SystemBoolean
[optional] Draws box plots vertical or horizontal when set to false, default: true.
fillAreaColor (Optional)
Type: SystemNullableColor
[optional] Color of fill areas, default: White.
frameColor (Optional)
Type: SystemNullableColor
[optional] Color of frames, default: Black.
medianColor (Optional)
Type: SystemNullableColor
[optional] Color of medians, default: Black.
whiskerColor (Optional)
Type: SystemNullableColor
[optional] Color of whiskers, default: Black.
pointColor (Optional)
Type: SystemNullableColor
[optional] Color of scattered plots or outliers, default: Black.
frameWidth (Optional)
Type: SystemInt32
[optional] Line width of frames, default: 1px.
medianWidth (Optional)
Type: SystemInt32
[optional] Line width of medians, default: 2px.
whiskerWidth (Optional)
Type: SystemInt32
[optional] Line width of whiskers, defualt: 1px.
pointSize (Optional)
Type: SystemSingle
[optional] Size of points of scattered plots or outliers, default: 5.
frameStyle (Optional)
Type: ILNumerics.DrawingDashStyle
[optional] Linestyle of frames, default: solid.
medianStyle (Optional)
Type: ILNumerics.DrawingDashStyle
[optional] Linestyle of medians, default: solid.
whiskerStyle (Optional)
Type: ILNumerics.DrawingDashStyle
[optional] Linestyle of whiskers, default: dashed.
tag (Optional)
Type: SystemObject
[optional] Identifies the BarPlot object in the scene graph.
Remarks

[ILNumerics Drawing2 Toolbox]

Examples

Creating an BoxPlot object

private void ilPanel1_Load(object sender, EventArgs e)
{
Array<double> X = linspace<double>(1, 5, 3);
Array<double> Data = new float[,] { { 8, 5, 6, 7, 5, 9, -5, -4, 4, 3 },
        { 20, 7, 5, 5, 6, 2, 3, 15, 4, 1 }, { 9, 9, 0, 18, 12, 11, 6, 8, 10, 7 } };
var plotCube = ilPanel1.Scene.Add(new PlotCube());
var boxPlot = plotCube.Add(new BoxPlot(X, Data, boxWidth: 1, fillAreaColor: Color.CornflowerBlue,
frameColor: Color.DarkBlue, medianColor: Color.DarkBlue, whiskerColor: Color.DarkBlue,
pointColor: Color.OrangeRed));
}
See Also

Reference