Plot Error Bars 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 Mankoff Library Markwardt Library Motley Library Salvaggio Library ENVI Using ENVI Modules idl oploterr Atmospheric Correction DEM Extraction ENVI Photogrammetry Feature Extraction (FX) NITF ENVI API ESE Using idl ploterr ENVI Services Engine ENVI Services Engine API ENVI for ArcGIS@ Services Edition Resources Licensing PDF Guides Platform Support Harris Geospatial/Docs Center/IDL Reference/Direct
Oploterror Idl
Graphics/ERRPLOT Procedure ERRPLOT Procedure ERRPLOT Procedure Note: The new ERRORPLOT function has replaced much of the functionality of the ERRPLOT procedure. The ERRPLOT procedure plots error bars over a previously drawn plot. This routine is
Idl Errplot
written in the IDL language. Its source code can be found in the file errplot.pro in the lib subdirectory of the IDL distribution. 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 idl horizontal error bars 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 Syntax ERRPLOT, [ X, ] Low, High [,WIDTH=value] Graphics Keywords: [,CLIP=[X0, Y0, X1, Y1]] [,COLOR=value] [,/DATA | , /DEVICE | , /NORMAL] [,LINESTYLE={0 | 1 | 2 | 3 | 4 | 5}] [,/NOCLIP] [,PSYM=integer{0 to 10}] [,SYMSIZE=value] [,/T3D] [,THICK=value] [,Z=value] 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. Graphics Keywords Accepted See Graphics Keywords for the description of the following graphics and plotting keywords: CLIP, COLOR, DATA, DEVICE, LINESTYLE, NOCLIP, NORMAL, PSYM, SYMSIZE, T3D, THICK, Z Version History Original Introduced See Also ERRORPLOT, OPLOTERR Procedure, PLOT Procedure, PLOTERR Procedure Product IDL Version 8.5.1 More Direct Graphics: BOX_CURSOR ProcedureCONTOUR ProcedureCREATE_VIEW ProcedureCURSOR ProcedureCV
probably out of luck here, given what goes in the IDL distribution. http://www.harrisgeospatial.com/docs/ERRPLOT_Procedure.html But others have run up against this problem, too. Check out the routines PlotErrorand OplotErr in the NASA Astronomy Library. These routines have modified the standard IDL routines to allow http://www.idlcoyote.com/graphics_tips/yerrorbars.html error bars in either direction. Moreover, the routines have additional options, such as NAN value recogntion, plotting only every nth error bar, and the NSum keyword that make them even more useful. Error bars can also be created on plots using the ERR_* keywords available on the cgPlot command. You can find IDL code and see an example of this in the Errorbar_Plot example in the Coyote Plot Gallery. [Return to IDL Programming Tips] Copyright © 1997-2013 David W. Fanning Last Updated 10 December 2013
source code http://northstar-www.dartmouth.edu/doc/idl/html_6.2/ERRPLOT.html can be found in the file errplot.pro in 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 plot error bars 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)