How To Plot Error Bars In Idl
Contents |
Toolkit APIs ENVI API ESE API Libraries Astronomy Library Beaumont Library Bowman Library Catalyst Library Coyote Library Dáithí Library Galloy Library JBIU Library JHUAPLS1R Library
Idl Oploterr
Mankoff Library Markwardt Library Motley Library Salvaggio Library ENVI Using idl ploterr ENVI Modules Atmospheric Correction DEM Extraction ENVI Photogrammetry Feature Extraction (FX) NITF ENVI API ESE Using ENVI Services
Ploterror Idl
Engine ENVI Services Engine API ENVI for ArcGIS@ Services Edition Resources Licensing PDF Guides Platform Support Harris Geospatial/Docs Center/IDL Reference/New Graphics/ERRORPLOT ERRORPLOT ERRORPLOT The ERRORPLOTfunction draws a simple line idl errplot 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, 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], oploterror idl $ 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_COLOR, BACKGROUND_TRANSPARENCY, CLIP, COLOR, CROSSHAIR, ERRORBAR_CAPSIZE, ERRORBAR_COLOR, ERRORBAR_LINESTYLE, ERRORBAR_THICK, FILL_BACKGROUND, FILL_COLOR, FILL_LEVEL, FILL_TRANSPARENCY, FONT_COLOR, FONT_NAME, FONT_SIZE, FONT_STYLE, HIDE, LINESTYLE, NAME, POSITION, RGB_TABLE, SYM_COLOR, SYM_FILLED, SYM_FILL_COLOR, SYM_INCREMENT, SYMBOL, SYM_SIZE, SYM_THICK, SYM_TRANSPARENCY, THICK, TITLE, TRANSPARENCY, UVALUE, VERT_COLORS, WINDOW, WINDOW_TITLE, XRANGE, YRANGE Methods Close ConvertCoord CopyWindow Delete Erase GenerateCode GetData GetValueAtLocation MapForward MapIn
source code http://northstar-www.dartmouth.edu/doc/idl/html_6.2/ERRPLOT.html can be found in the file errplot.pro in https://groups.google.com/d/topic/comp.lang.idl-pvwave/hv2mCUisPHI the lib subdirectory of the IDL distribution. Syntax ERRPLOT, [ X, ] Low, High [,WIDTH=value] Arguments X A vector containing the abscissa values at which the error bars are to be plotted. error bars 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 how to plot 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)
från GoogleLogga inDolda fältSök efter grupper eller meddelanden