I have already highlighted two columns from one workbook, and plan to use Template Library to plot. My template is located at: C:\Documents and Settings\Pig&Dog\My Documents\OriginLab\85\User Files\my_temp_line.otp
So how can I write a code to open the Library and plot the graph by using "my_temp_line.otp" ?
One friend told me to use: plotxy ogl:=[<new template:=my_temp_line name:=samplegraph>];
This can not work, since this is not a line plot, but plots many dots with square shape, which does not satisfy the requirement. And it is obvious that this code does not use my template to plot.
When I try: plotxy ogl:=[<new template:=C:\Documents and Settings\Pig&Dog\My Documents\OriginLab\85\User Files\my_temp_line.otp name:=samplegraph>];
Then it returns: Error: value and is missing a variable name
So How do I write code to use my template to plot please?
plotxy ogl:=[<new template:="C:\Documents and Settings\Pig&Dog\My Documents\OriginLab\85\User Files\my_temp_line.otp" name:=samplegraph>];
This command actually use my template to plot.
However, this problem is only partially solved, because the function "plotxy" changes the properties of my template - this is not line plot, but many square-shaped dots, which does not satisfy the requirement. So the problem remains. Thank you.