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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Use my template to plot

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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?

Thank you very much~
5   L A T E S T    R E P L I E S    (Newest First)
EigenGoofy Posted - 05/17/2011 : 12:03:38 PM

"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

Penn Posted - 05/16/2011 : 10:52:13 PM
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
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.
EigenGoofy Posted - 05/16/2011 : 11:18:38 AM
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.

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000