Hi,
Let me show you an example to how to do this using LabTalk script:
1. Import <Origin Installation Directory>\Samples\Graphing\Group.dat inot Origin.
2. Highlight col(B)~col(D) to plot a line graph.
3. With the line graph active, open the Command window by selecting Window: Command Window. Copy and paste the script lines below to Command Window and run it:
string str$="";
int nColor = 0, nn = 1;
%A = %;
doc -e D
{
get %c -c nColor;
str$ += "\l(L $(nColor),10) %A($(nn))%(CRLF)"; // Change the legend Line Width to 10 and make the line color follow the plot.
nn+=1;
}
str$ = str.Trim()$;
Legend.Text$ = str$;
Any problem, please let us know.
Thanks,
Shirley
Originlab Technical Service Team