Automatically add tags to all points on graph from text wave
cwenger
Function AddTagsFromWave(graphName, traceName, labelWave)
String graphName
String traceName
Wave/T labelWave
Wave w = TraceNameToWaveRef(graphName, traceName)
Variable index
for(index = 0; index < numpnts(w); index+=1)
String tagName = "label" + num2str(index)
Tag/C/N=$tagName/F=0/TL=0 $traceName, index, labelWave[index]
endfor
End
String graphName
String traceName
Wave/T labelWave
Wave w = TraceNameToWaveRef(graphName, traceName)
Variable index
for(index = 0; index < numpnts(w); index+=1)
String tagName = "label" + num2str(index)
Tag/C/N=$tagName/F=0/TL=0 $traceName, index, labelWave[index]
endfor
End
Forum
Support
Gallery
Igor Pro 9
Learn More
Igor XOP Toolkit
Learn More
Igor NIDAQ Tools MX
Learn More