Hi,
Please try the code below:
[Freq]
//frequency counts
freqcounts -r 2 irng:=col(1:3) inc:=0.08 center:=1 end:=0 freq:=1 count:=0 cumulcount:=0 rd:=[<input>]<input>;
[Plot]
//drawing
plotxy iy:=(col("Bin Center"),col(5:7)) plot:=200; //200 line plot
set %C -w 2000; // 4pts active data set
[Fit]
//fitting
win -a Book1;
wks.ncols = wks.ncols+6;
// Multiple input columns is supported on GUI but not LabTalk
fitpoly iy:=(col("Bin Center"),col(5)) polyorder:=9 fixint:=1 intercept:=0 oy:=(8,9) -r 2;
fitpoly iy:=(col("Bin Center"),col(6)) polyorder:=9 fixint:=1 intercept:=0 oy:=(10,11) -r 2;
fitpoly iy:=(col("Bin Center"),col(7)) polyorder:=9 fixint:=1 intercept:=0 oy:=(12,13) -r 2;
plotxy iy:=((8,9),(10,11),(12,13)) plot:=200 ogl:=[Graph1]Layer1!;
[DrawFit]
//drawing fitted curve
win -a Graph1;
layer.plot =4; // Activate added plot
set %C -w 2000; // Set width as 4
// Data plots are grouped, line below actually does nothing
//set %C -c color(green); // Set color as Red
Hope this will be it.
Regards!
Sean