>  Docs Center  >  Libraries  >  Daithi  >  ERROR_BARS
Libraries

ERROR_BARS

ERROR_BARS

Name


      ERROR_BARS.pro

Purpose


This procedure plots error bars over plotted data.

Category


      Graphics

Calling Sequence


      ERROR_BARS, X, Ymin, Ymax

Inputs


X: A vector containing the X-axis values of the points, of type
integer or floating point.
Ymin: A vector containing the minimum error limits of the
points on the Y-axis, of type integer or floating point.
Ymax: A vector containing the maximum error limits of the
points on the Y-axis, of type integer or floating point.

Keyword Parameters


COLOR: The color index value of the error bars. The default
is the IDL default plot color.
NOCLIP: If set then clipping of the plot outside of the axes is
disabled.
THICK: The thickness of the line plotting the error bars. The
default is a thickness of 1.
WIDTH: The length of the horizontal end lines of the error
bars. The default is 0 (no end lines).
ROTATE: If set, the procedure switches the X- and Y-axes,
and so plots horizontal error bars on a vertical
plot. The default is to plot vertical error bars on a
horizontal plot.

Uses


VAR_TYPE.pro

Procedure


This procedure plots lines forming vertical error bars over
a pre-existing plot.

Example


Plot three points with error bars of width 1.
plot, [1.,2.,3.], [1.1,1.2,1.3], psym=4
error_bars, [1.,2.,3.], [1.1,1.2,1.3]-0.5, [1.1,1.2,1.3]+0.5

Modification History


Written by: Daithi A. Stone, (stoned@atm.ox.ac.uk) 2001-02-14.
Modified: DAS, 2006-02-17 (added NOCLIP keyword)



© 2024 NV5 Geospatial Solutions, Inc. |  Legal
My Account    |    Contact Us