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
 Plotting from labtalk and using LINE style
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

a.abc.b35

175 Posts

Posted - 11/11/2015 :  6:01:31 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 8.5.1
Operating System: win 7

I have customized by default line.otp template and saved that in the user folder with the said name. If I select two XY columns and click on the shortcut for line plot (with a slanted line symbol), I can get that working.

But if i type
plotxy iy:= (1,3) plot:=200
from the command line, it plots with the old line.otp template which i believe is saved in the C:/originlab...

I thought that origin will always check the user folder if any template of the same name existed and use that instead of the one in the C:/originlab...

For a manual plot this seems to work but not for a labtalk one linear. Can someone help me with this please?
Thanks,

AB

a.abc.b35

175 Posts

Posted - 11/11/2015 :  6:21:47 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Using
plotxy iy:= (1,3) plot:=200 ogl:=<new template:=Line>;

works!

Is it a bug or it is just designed this way?

AB
Go to Top of Page

minimax

348 Posts

Posted - 11/12/2015 :  10:23:46 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi AB,

Plot type and template are 2 separate concepts.

One template usually contains one default plot type.

On the other hand, different plot types can be added into a same template.

Therefore, in the plotxy tool (and most other tools in Origin), plot type can be different, but template has only one by default (which is origin.otp here).

That is why you see your custom line.otp is not used, but ogl:=<new template:=Line> will work.

Is it clear?


Max
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