Error Bar Plots
To create an ILErrorBarPlot object, provide its constructor with:
- A [2 x n] array XY, containing the x and y coordinates of a two dimensional curve
- A row vector L, containing lower deviations
- A row vector T, containing upper deviations (this parameter is optional: if T is not provided, the values L will be used and symmetric error bars will be drawn)
Note that all input parameters must be the same lengths. In the following graph you can see an ILErrorBarPlot object that is based on an exponential curve.
To modify the X and Y coordinates, the deviations L and T of an existing ILErrorBarPlot object, use the Update() method. Here, all input parameters are optional as shown in the example below.
When changing one or more of the 4 input parameters, make sure they are of same lengths.
Next to the mandatory input parameters, there is also a set of optional parameters such as:
- errorbarWidth to determine the width of all error bars
- visibleLine to specify whether the lone of the curve is visible or not
- drawVertical to plot vertical or horizontal error bars
On top of that, you will of course have access to common properties such as color, width and style of the line as well as color and style of the markers.
Since ILErrorBarPlot derives from ILGroup, you have access to all configuration options of common group objects.
To save workload, several ILErrorBarPlot overloads exist:
All overloads are available for the input type float and double.
For more detailed information and examples check out:
The candlestick feature is available since version 4.12 of the ILNumerics Drawing2 module.