Origin Ver. and Service Release (Select Help-->About Origin): 9.1 SR3 64bit Operating System:Win7
Hi there,
i'm sure it is an easy task but i am stuck:
Writing a labtalk script for a standard scatter plot (this works) and want to plot in the same layer a function curve (this i need for sure) where the formula is coming from a certain cell (this is optional).
No fitting needed ,and the axis scale should not change with regards to the scatter data.
// Begin // Assuming you've already created a scatter plot // Assuming the graph window is active create mydata -fp 500 "t*cos(t)" $(X1) $(X2); // Creates a loose dataset called mydata with the same X range as current axis, number of points be 500, by formula t*cos(t) plotxy iy:=mydata plot:=200 rescale:=0 color:=2 ogl:=[%H]1!; // End