ERRPLOT

The ERRPLOT procedure plots error bars over a previously drawn plot.

This routine is written in the IDL language. Its source code can be found in the file errplot.pro in the lib subdirectory of the IDL distribution.

Calling Sequence

ERRPLOT, [ X, ] Low, High

Arguments

X

A vector containing the abscissa values at which the error bars are to be plotted. X only needs to be provided if the abscissa values are not the same as the index numbers of the plotted points.

Low

A vector of lower estimates, equal to data - error.

High

A vector of upper estimates, equal to data + error.

Keywords

WIDTH

The width of the error bars. The default is 1% of plot width.

Examples

To plot symmetrical error bars where Y is a vector of data values and ERR is a symmetrical error estimate, enter:

PLOT, Y ; Plot data.

ERRPLOT, Y-ERR, Y+ERR ; Overplot error bars.

If error estimates are non-symmetrical, provide actual error estimates in the upper and lower arguments.

PLOT,Y ; Plot data.

ERRPLOT, lower, upper ; Provide custom lowwer and upper bounds.

To plot versus a vector of abscissas:

PLOT, X, Y ; Plot data (X versus Y).

ERRPLOT, X, Y-ERR, Y+ERR ; Overplot error estimates.

See Also

OPLOTERR , PLOT , PLOTERR