ILNumerics - Technical Application Development
Assembly: ILNumerics.Toolboxes.Drawing2 (in ILNumerics.Toolboxes.Drawing2.dll) Version: 5.5.0.0 (5.5.7503.3146)
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<float> X, InArray<float> Y, InArray<float> L, InArray<float> 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: ILNumericsInArraySingle
Row vector that contains x coordinates of an arbitrary two dimensional curve. - Y
- Type: ILNumericsInArraySingle
Row vector that contains y coordinates of an arbitrary two dimensional curve. - L
- Type: ILNumericsInArraySingle
Row vector that contains distance between bottom of error bar to vertex of curve. - T
- Type: ILNumericsInArraySingle
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
Exception | Condition |
---|---|
ArgumentException | If input argument X is not a row vector. |
ArgumentException | If input argument Y is not a row vector. |
ArgumentException | If 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<float> X = linspace<float>(0, 9, 10); Array<float> Y = sin(X); Array<float> L = ones<float>(1, 10) * 0.4f; Array<float> T = ones<float>(1, 10) * 0.2f; // Create PlotCube object var myPlotCube = ilPanel1.Scene.Add(new PlotCube()); // Create ErrorBarPlot object var myErrorBarPlot = myPlotCube.Add(new ErrorBarPlot(X, Y, L, T)); }
See Also