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
 Origin Forum
 Apllying graph theme
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

JonasKlim

Lithuania
36 Posts

Posted - 12/08/2017 :  06:27:02 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): Student 2018
Operating System:

Hello,

Could you please advise about applying theme to graph.
When I execute the script below, four lines are plotted (1+2) and (3+4). The theme is applied only to lines 1 and 2. However, if I execute the same theme "linethemeApply2g theme:= "MRvsB#1";" separately, all four lines are formatted.

The script:
plotxy iy:=[bkname$]lent$!(1,9) plot:=200 ogl:=[grname$]1!;; //plot graph//;
plotxy iy:=[bkname$]lent$!(?,13) plot:=200 ogl:=[grname$]1!;; //plot graph//;
themeApply2g theme:= "MRvsB#1";
label -p 30 5 -n MyText grname$;

Another question regarding label line (copied from forum): instead of putting grname value it puts just "grname$", but two times - one on the graph, the second on data sheet.

Best regards,

Jonas

Edited by - JonasKlim on 12/08/2017 06:54:14 AM

Shirley_GZ

China
Posts

Posted - 12/09/2017 :  03:50:19 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Jonasklim,

There are some extra semi-colons in the plot lines, please run the script below instead to apply the theme:
plotxy iy:=[bkname$]lent$!(1,9) plot:=200 ogl:=[grname$]1!; //plot graph
plotxy iy:=[bkname$]lent$!(?,13) plot:=200 ogl:=[grname$]1!; //plot graph
themeApply2g theme:= "MRvsB#1";


For the label line, please change it to:

label -p 30 5 -sl -n MyText %(grname$);


Thanks,
Shirley




Originlab Technical Service Team
Go to Top of Page

JonasKlim

Lithuania
36 Posts

Posted - 12/10/2017 :  2:45:48 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Dear Shirley,

I have copied the your updated lines to my script, and updated the template, and that part works fine.
Still, the label part does not work - now (with script below) the label "%(grname$)".
I want to place value of grname$ string on the graph. Could you please advise how to do that.

Best regards,

Jonas


plotxy iy:=[bkname$]lent$!(1,9) plot:=200 ogl:=[grname$]1!; //plot graph
plotxy iy:=[bkname$]lent$!(?,13) plot:=200 ogl:=[grname$]1!; //plot graph;
label -p 30 5 -sl -n mytext %(grname$);
themeApply2g theme:= "MR4x2vsB#1-2";

Edited by - JonasKlim on 12/11/2017 02:07:40 AM
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