Industrial Data Science
in C# and .NET:
Simple. Fast. Reliable.
 
 

ILNumerics - Technical Computing

Modern High Performance Tools for Technical

Computing and Visualization in Industry and Science

Error Bar Plots

ErrorBarPlot enables you to plot error bars along a two dimensional curve. Error bars graphically represent the variability of data.

 

Error bar plots are part of the ILNumerics Drawing Extensions Toolbox.

Using ErrorBarPlot

To create an ErrorBarPlot 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 ErrorBarPlot object that is based on an exponential curve.

To modify the X and Y coordinates, the deviations L and T of an existing ErrorBarPlot 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.

Optional Parameters

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.

Further Configurations

Since ErrorBarPlot derives from Group, you have access to all configuration options of common group objects.

More Information

To save workload, several ErrorBarPlot 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.