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 matrix XY and the row vectors
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> XY, InArray<float> L, InArray<float> T = null, 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
- XY
- Type: ILNumericsInArraySingle
Matrix that contains x and 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 (Optional)
- Type: ILNumericsInArraySingle
[optional] Row vector that contains distance between top of error bar to vertex of curve, default: L. - 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 XY is not a matrix. |
ArgumentException | If input argument XY is not a (2 x n) matrix. |
Remarks
[ILNumerics Drawing2 Toolbox]
Examples
Creating an ErrorBarPlot object
private void ilPanel1_Load(object sender, EventArgs e) { // Generate Data Array<float> XY = linspace<float>(0, 20, 15); XY[1,full] = 0.5f * cos(XY[0,full]); Array<float> L = tosingle(rand(1, 15)); Array<float> T = tosingle(rand(1, 15)); // Create PlotCube object var myPlotCube = ilPanel1.Scene.Add(new PlotCube()); // Create ErrorBarPlot object var myErrorBarPlot = myPlotCube.Add(new ErrorBarPlot(XY, L, T, visibleLine: false)); }
See Also