Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
EigenGoofy
Posted - 05/16/2011 : 11:16:57 AM Hi~
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?
For more details about plot type, you can refer to this page.
Penn
EigenGoofy
Posted - 05/16/2011 : 4:43:48 PM Okay, only this question is unsolved today.
EigenGoofy
Posted - 05/16/2011 : 12:20:45 PM Ok, when I add "" to the command, particularly:
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.