The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Use my template to plot
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

EigenGoofy

64 Posts

Posted - 05/16/2011 :  11:16:57 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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?

Thank you very much~

EigenGoofy

64 Posts

Posted - 05/16/2011 :  11:18:38 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
P.S.
http://www.originlab.com/www/helponline/Origin/en/Programming/mergedProjects/X-Function/X-Function/Plotxy.html

The information provided by the address above is impcomplete and does not provide sufficient examples to illustrate.
Go to Top of Page

EigenGoofy

64 Posts

Posted - 05/16/2011 :  12:20:45 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.
Go to Top of Page

EigenGoofy

64 Posts

Posted - 05/16/2011 :  4:43:48 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Okay, only this question is unsolved today.
Go to Top of Page

Penn

China
644 Posts

Posted - 05/16/2011 :  10:52:13 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

I am afraid that you need to specify the plot type in your script, such as

plotxy plot:=200 ogl:=[<new template:=my_temp_line name:=samplegraph>];

For more details about plot type, you can refer to this page.

Penn
Go to Top of Page

EigenGoofy

64 Posts

Posted - 05/17/2011 :  12:03:38 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply

"plot:=200" Gosh, this really works!

Wonderful, yippee! Thanks a lot, Penn!

quote:
Originally posted by Penn

Hi,

I am afraid that you need to specify the plot type in your script, such as

plotxy plot:=200 ogl:=[<new template:=my_temp_line name:=samplegraph>];

For more details about plot type, you can refer to this page.

Penn

Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000