external/CDAWlib/
cdaweb_errplot.pro
Routines
top source cdaweb_errplot
cdaweb_errplot, X, Low, High, Width=Width
NAME: CDAWEB_ERRPLOT PURPOSE: Plot error bars over a previously drawn plot. CATEGORY: J6 - plotting, graphics, one dimensional. CALLING SEQUENCE: CDAWEB_ERRPLOT, Low, High ;X axis = point number. CDAWEB_ERRPLOT, X, Low, High ;To explicitly specify abscissae. INPUTS: Low: A vector of lower estimates, equal to data - error. High: A vector of upper estimates, equal to data + error. OPTIONAL INPUT PARAMETERS: X: A vector containing the abscissae. KEYWORD Parameters: WIDTH: The width of the error bars, in units of the width of the plot area. The default is 1% of plot width. OUTPUTS: None. COMMON BLOCKS: None. SIDE EFFECTS: An overplot is produced. RESTRICTIONS: Logarithmic restriction removed. PROCEDURE: Error bars are drawn for each element. EXAMPLES: To plot symmetrical error bars where Y = data values and ERR = symmetrical error estimates, enter: PLOT, Y ;Plot data CDAWEB_ERRPLOT, Y-ERR, Y+ERR ;Overplot error bars. If error estimates are non-symetrical, enter: PLOT,Y CDAWEB_ERRPLOT, Upper, Lower ;Where Upper & Lower are bounds. To plot versus a vector of abscissae: PLOT, X, Y ;Plot data (X versus Y). CDAWEB_ERRPLOT, X, Y-ERR, Y+ERR ;Overplot error estimates. MODIFICATION HISTORY: Originally errplot.pro, idl internal routine RCJ, Feb, 2003 Cdaweb_errplot: Based on errplot (idl internal routine). We needed a 'long' loop: for i=0L,n-1 do begin
Parameters
- X
- Low
- High
Keywords
- Width
File attributes
Modification date: | Tue Oct 21 13:53:48 2014 |
Lines: | 22 |