![](/profiles/wavemetrics/themes/wavemetrics/logo.png)
Annotate traces by color
![](/sites/default/files/styles/thumbnail/public/AlonPolegPolsky/profile-images/2020-04/alonpolegpolsky_.jpg?itok=qS3EIxXK)
AlonPolegPolsky
Function AnnotationColor()
variable tnum
string traces=tracenamelist("",";",1),text=""
for(tnum=0;tnum<itemsinlist(traces,";");tnum+=1)
text+="\K"+StringByKey("rgb(x)", TraceInfo("",stringfromlist(tnum,traces,";"),0),"=")+stringfromlist(tnum,traces,";")+"\r"
endfor
if(strlen(text)>0)
TextBox removeending(text)
endif
End
variable tnum
string traces=tracenamelist("",";",1),text=""
for(tnum=0;tnum<itemsinlist(traces,";");tnum+=1)
text+="\K"+StringByKey("rgb(x)", TraceInfo("",stringfromlist(tnum,traces,";"),0),"=")+stringfromlist(tnum,traces,";")+"\r"
endfor
if(strlen(text)>0)
TextBox removeending(text)
endif
End
![](/sites/default/files/forum.png)
Forum
![](/sites/default/files/support.png)
Support
![](/sites/default/files/gallery.png)
Gallery
Igor Pro 9
Learn More
Igor XOP Toolkit
Learn More
Igor NIDAQ Tools MX
Learn More