ILNumerics Ultimate VS

ErrorBarPlot Constructor (InArrayDouble, InArrayDouble, InArrayDouble, InArrayDouble, Boolean, Boolean, NullableColor, Int32, Single, MarkerStyle, NullableColor, NullableColor, Int32, DashStyle, Object)

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Constructor defines ErrorBarPlot on the basis of the row vectors X, Y, L and T

[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 ErrorBarPlot(
	InArray<double> X,
	InArray<double> Y,
	InArray<double> L,
	InArray<double> T,
	bool drawVertical = true,
	bool visibleLine = true,
	Nullable<Color> errorbarColor = null,
	int errorbarLineWidth = 1,
	float errorbarWidth = 0,025f,
	MarkerStyle markerStyle = MarkerStyle.Dot,
	Nullable<Color> markerColor = null,
	Nullable<Color> lineColor = null,
	int lineWidth = 1,
	DashStyle lineStyle = DashStyle.Solid,
	Object tag = null
)

Parameters

X
Type: ILNumericsInArrayDouble
Row vector that contains x coordinates of an arbitrary two dimensional curve.
Y
Type: ILNumericsInArrayDouble
Row vector that contains y coordinates of an arbitrary two dimensional curve.
L
Type: ILNumericsInArrayDouble
Row vector that contains distance between bottom of error bar to vertex of curve.
T
Type: ILNumericsInArrayDouble
Row vector that contains distance between top of error bar to vertex of curve.
drawVertical (Optional)
Type: SystemBoolean
[optional] Draws error bars vertical or horizontal when set to false, default: true
visibleLine (Optional)
Type: SystemBoolean
[optional] Displays line plot when set to true, default: true
errorbarColor (Optional)
Type: SystemNullableColor
[optional] Line color of error bar, default: Red
errorbarLineWidth (Optional)
Type: SystemInt32
[optional] Line width of error bar, default: 1px
errorbarWidth (Optional)
Type: SystemSingle
[optional] Width of error bar, default: 0.025
markerStyle (Optional)
Type: ILNumerics.DrawingMarkerStyle
[optional] Marker style, default: Dot
markerColor (Optional)
Type: SystemNullableColor
[optional] Marker color, default: Blue
lineColor (Optional)
Type: SystemNullableColor
[optional] Line color, default: Blue
lineWidth (Optional)
Type: SystemInt32
[optional] Line width, default: 1px
lineStyle (Optional)
Type: ILNumerics.DrawingDashStyle
[optional] Line style, default: solid
tag (Optional)
Type: SystemObject
[optional] Identifies the ErrorBarPlot object in the scene graph
Exceptions

ExceptionCondition
ArgumentExceptionIf input argument X is not a row vector.
ArgumentExceptionIf input argument Y is not a row vector.
ArgumentExceptionIf input argument X and Y are not of the same size.
Remarks

[ILNumerics Drawing2 Toolbox]

Examples

Creating an ErrorBarPlot object

private void ilPanel1_Load(object sender, EventArgs e)
{
    // Generate Data
    Array<double> X = linspace<double>(-5, 5, 15);
    Array<float> Y = cos(X);
    Array<double> L = ones<double>(1, 15) * 0.6;
    Array<double> T = ones<double>(1, 15) * 0.2;
    // Create PlotCube object
    var myPlotCube = ilPanel1.Scene.Add(new PlotCube());
    // Create ErrorBarPlot object
    var myErrorBarPlot = myPlotCube.Add(new ErrorBarPlot(X, Y, L, T, drawVertical: false));
}
See Also

Reference