Hi Yiming Chen,
I put the data points in the graph a few lines above which works perfect. The last line of my code is needed to put the fitted line in the graph.
plotxy iy:=(2,14)[1:$(NumTemp-NumTempCool)] plot:=201 ogl:=[TQFWHMcm-1Graph]1!;
range ll = [TQFWHMcm-1Graph]1!;
ll.x.from = 0;
ll.x.to = 700;
ll.x.inc = 100;
ll.x.rescale = 4;
ll.y.from = 0;
ll.y.to = 2000;
ll.y.inc = 200;
ll.y.rescale = 4;
tree lrGUI;
xop execute:=init classname:=FitLinear iotrgui:=lrGUI;
lrGUI.GUI.InputData.Range1.X$ = col(2);
lrGUI.GUI.InputData.Range1.Y$ = col(14)[1:$(NumTemp-NumTempCool)];
lrGUI.GUI.Graph1.XDataType.Range = 2;
lrGUI.GUI.Graph1.XDataType.Min.SetAttribute("Auto",0);
lrGUI.GUI.Graph1.XDataType.Min = 0;
lrGUI.GUI.Graph1.XDataType.Max.SetAttribute("Auto",0);
lrGUI.GUI.Graph1.XDataType.Max = 650;
xop execute:=report iotrgui:=lrGUI otrresult:=lrOut;
lrGUI.GUI.Output.PlotSettings.PasteResultTable.SetAttribute("Use", 3);
xop execute:=cleanup;
plotxy iy:=[TQdata]4!(1,2) plot:=200 ogl:=[TQFWHMcm-1Graph]1!;