Annotations in Igor Pro
Legends, text boxes and tags are all annotations, addressed by name.
Function Annotate(WAVE y)
Legend/C/N=key/J/A=LT "\\s(y) measured\r\\s(fit_y) fitted"
WaveStats/Q y
Tag/C/N=peak/F=0/A=LB y, V_maxloc, "peak"
TextBox/C/N=stamp/A=RB/F=0 "n = " + num2istr(numpnts(y))
End
How it works
Legend/C/N=replaces an annotation instead of stacking a second one.Tagattaches to a point on a trace and moves with it.\\s(trace)in the text draws that trace's own symbol.
Keywords and builtins used here
EndFunctionLegendTagTextBoxWAVEWaveStatsnum2istrnumpnts
The run, in numbers
- Lines
- 8
- Characters to type
- 203
- Tokens
- 56
- Three-star pace
- 85 tpm
At the three-star pace of 85 tokens a minute, this run takes about 40 seconds.
Step 1 of 4 in Marking it up, step 12 of 19 in Graphs & presentation.