Error Bars Plot Idl
Contents |
source code idl ploterror can be found in the file errplot.pro in idl ploterr the lib subdirectory of the IDL distribution. Syntax ERRPLOT, [ X, ]
Plot Idl Color
Low, High [,WIDTH=value] Arguments X A vector containing the abscissa values at which the error bars are to be plotted.
Error Bars Plot Python
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 error bars plot r 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 data: PLOT, Y ; Overplot error bars: ERRPLOT, Y-ERR, Y+ERR If error estimates are non-symmetrical, provide actual error estimates in the upper and lower arguments. ; Plot data: PLOT,Y ; Provide custom lower and upper bounds: ERRPLOT, lower, upper To plot Y versus a vector of abscissas: ; Plot data (X versus Y): PLOT, X, Y ; Overplot error estimates: ERRPLOT, X, Y-ERR, Y+ERR Version History Original Introduced See Also OPLOTERR, PLOT, PLOTERR IDL Online Help (June 16, 2005)
Toolkit APIs ENVI API ESE API Libraries Astronomy Library Beaumont Library Bowman Library Catalyst Library Coyote
Idl Oploterr
Library Dáithí Library Galloy Library JBIU Library JHUAPLS1R Library Mankoff idl errplot Library Markwardt Library Motley Library Salvaggio Library ENVI Using ENVI Modules Atmospheric Correction DEM Extraction oplot idl ENVI Photogrammetry Feature Extraction (FX) NITF ENVI API ESE Using ENVI Services Engine ENVI Services Engine API ENVI for ArcGIS@ Services Edition Resources Licensing PDF http://northstar-www.dartmouth.edu/doc/idl/html_6.2/ERRPLOT.html Guides Platform Support Harris Geospatial/Docs Center/IDL Reference/New Graphics/ERRORPLOT ERRORPLOT ERRORPLOT The ERRORPLOTfunction draws a simple line plot, with error bars surrounding each vertex. You can create plots with both symmetric and asymmetric error bars. Example The following lines create the plot shown at the right. y = [20.1, 19.9, 20.0, http://www.harrisgeospatial.com/docs/ERRORPLOT.html 20.0, 19.9, 20.0] yerror = [0.329, 0.186, 0.147, 0.086, 0.234, 0.196] x = INDGEN(6)+1 ; Create the plot p = ERRORPLOT(x, y, yerror, XRANGE=[0,7], $ XTITLE="Day", YTITLE="Distance (miles)", $ TITLE="Average distance bears walk in a day") ; Set some properties p.THICK=2 p.ERRORBAR_THICK=2 p.SYM_COLOR ="cornflower" p.ERRORBAR_COLOR="indian_red" p.ERRORBAR_CAPSIZE=0.5 Additional Examples See Plot examples for additional examples using the ERRORPLOTfunction. Syntax graphic = ERRORPLOT(Y, Yerror [, Format] [, Keywords=value] [, Properties=value]) graphic = ERRORPLOT(X, Y, Xerror, Yerror [, Format] [, Keywords=value] [, Properties=value]) graphic = ERRORPLOT(X, Y, Yerror [, Format] [, Keywords=value] [, Properties=value]) Keywords Keywords are applied only during the initial creation of the graphic. AXIS_STYLE=value /BUFFER, /CURRENT, /DEVICE, DIMENSIONS=[width, height], LAYOUT=array, LOCATION=[x, y], MARGIN=scalar or [left, bottom, right, top], /NO_TOOLBAR, /NODATA, /OVERPLOT, /WIDGETS Properties Properties can be set as keywords to the function during creation, or retrieved or changed using the "." notation after creation. ANTIALIAS, ASPECT_RATIO, AXES, BACKGROUND_
top cgErrPlot https://www.idlcoyote.com/idldoc/cg/cgerrplot.html Graphics cgErrPlot, indep, low [, high] [, /AddCmd] [, Color=string/integer]http://astro.uni-tuebingen.de/software/idl/astrolib/plot/oploterror.html class="argument"> [, /Device] [, /Horizontal] [, /NoClip] [, /PSym] [, Thick=float] [, Width=float] [, _Extra=any] The purpose of cgErrPlot is to overplot error bars for data points on previously drawn line and bar plots. To allow cgErrPlot to be a drop-in replacement for the error bars plot IDL ErrPlot program, the program can be called in either of two ways: cgErrPlot, indep, low, high Or: cgErrPlot, high, low This is a really weird syntax (high and low reversed!), so be careful! The program requires the Coyote Library to be installed on your machine. Parameters indep in required type=any The independent data vector (X vector) if all three input parameters are used. If only two input parameters are used, this parameter is assumed to be the High parameter. low in required type=any If three input parameters are used, this parameter is assumed to contain the low values of the error estimates. Error bars will be drawn from the low value to the high value
Procedure Warning Revision History Source code in oploterror.pro OPLOTERROR Name OPLOTERROR Purpose Over-plot data points with accompanying X or Y error bars. Explanation For use instead of PLOTERROR when the plotting system has already been defined. Calling Sequence oploterror, [ x,] y, [xerr], yerr, [ /NOHAT, HATLENGTH= , ERRTHICK =, ERRSTYLE=, ERRCOLOR =, /LOBAR, /HIBAR, NSKIP = , NSUM = , ... OPLOT keywords ] Input Parameters X = array of abcissae, any datatype except string Y = array of Y values, any datatype except string XERR = array of error bar values (along X) YERR = array of error bar values (along Y) Optional Input Keywords /NOHAT = if specified and non-zero, the error bars are drawn without hats. HATLENGTH = the length of the hat lines used to cap the error bars. Defaults to !D.X_VSIZE / 100). ERRTHICK = the thickness of the error bar lines. Defaults to the THICK plotting keyword. ERRSTYLE = the line style to use when drawing the error bars. Uses the same codes as LINESTYLE. ERRCOLOR = scalar integer (0 - !D.N_TABLE) specifying the color to use for the error bars NSKIP = Positive Integer specifying the error bars to be plotted. For example, if NSKIP = 2 then every other error bar is plotted; if NSKIP=3 then every third error bar is plotted. Default is to plot every error bar (NSKIP = 1) NSUM = Number of points to average over before plotting, default = !P.NSUM The errors are also averaged, and then divided by sqrt(NSUM). This approximation is meaningful only when the neighboring error bars have similar sizes. /LOBAR = if specified and non-zero, will draw only the -ERR error bars. /HIBAR = if specified and non-zero, will draw only the +ERR error bars. If neither LOBAR or HIBAR are set _or_ if both are set, you will get both error bars. Just specify one if you only want one set. Any valid keywords to the OPLOT command (e.g. PSYM, YRANGE) are also accepted by OPLOTERROR via the _EXTRA facility. Note If only two parameters are input, they are taken as Y and YERR. If only three parameters are input, they will be taken as X, Y and YERR, respectively. Example Suppose one has X and Y vectors with associated errors XERR and YERR and that a plotting system has already been defined: (1) Overplot Y vs. X with both X and Y errors and no lines connecting the points IDL> oploterror, x, y, xerr, yerr, psym=3 (2) Like (1) but overplo