Error bars in Igor Pro
ErrorBars attaches to a trace and reads its bars from waves or from an expression.
Function AddErrorBars(WAVE means, WAVE sds)
ErrorBars/T=0/L=2 $NameOfWave(means) Y, wave=(sds, sds)
Duplicate/O sds, upper, lower
upper = means + sds
lower = means - sds
ErrorBars $NameOfWave(means) SHADE={0, 2, (0, 0, 65535, 16384),
(0, 0, 0, 0)}
ModifyGraph mode=4, marker=19, msize=3
End
How it works
Y, wave=(plus, minus)takes them from two waves./T=0removes the end caps;/L=sets their length.shade={...}draws a filled band instead of bars.
Keywords and builtins used here
DuplicateEndErrorBarsFunctionModifyGraphWAVEwave
The run, in numbers
- Lines
- 11
- Characters to type
- 292
- Tokens
- 91
- Three-star pace
- 85 tpm
At the three-star pace of 85 tokens a minute, this run takes about 64 seconds.
Step 4 of 4 in Marking it up, step 15 of 19 in Graphs & presentation.