误差棒

来自Shiyin's note
跳到导航 跳到搜索

IDL8之后的errorplot几乎包含所有下面的功能


IDL自带的画图程序:ploterr,oploterr,errplot

astro_lib中有ploterror, oploterror

Coyote库中有cgerrplot

ploterr

PLOTERR, [ X ,] Y , Err [, TYPE={1 | 2 | 3 | 4}] [, PSYM=integer{1 to 10}] 

TYPE:

  • 1 = X Linear - Y Linear (default)
  • 2 = X Linear - Y Log
  • 3 = X Log - Y Linear
  • 4 = X Log - Y Log

PSYM: default is +7.

Note:只能画Y轴的误差,不能overplot,不支持plot的关键字


oploterr

OPLOTERR, [ X ,] Y , Err [, Psym ]

Note: overplot,似乎和Coyote库兼容不好,default PSYM is +7


errplot

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] 

Note:这个相对强大,默认是overplot的,可以画不对称的误差棒,但是只能是y方向的

有cg版本的cgerrplot.


ploterror

ploterror, [ x,]  y, [xerr], yerr [, TYPE=, /NOHAT, HATLENGTH= , NSUM =
                 ERRTHICK=, ERRSTYLE=, ErrcolOR=, NSKIP=, .. PLOT keywords]

Note: ploterr的增强版,可以画x轴的误差(设yerr=0,只画x轴误差),不能画不对称误差棒,兼容cgplot的关键词,如PSYM=(不将数据点连线)。

oploterror

 oploterror, [ x,]  y, [xerr], yerr,   
           [ /NOHAT, HATLENGTH= , ERRTHICK =, ERRSTYLE=, ERRCOLOR =, 
             /LOBAR, /HIBAR, NSKIP = , NSUM = , /ADDCMD, ... OPLOT keywords ]

Note: ploterror的overplot版,利用/LOBAR, /HIBAR可实现不对称误差棒