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
 Origin Forum
 Apllying graph theme

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
JonasKlim Posted - 12/08/2017 : 06:27:02 AM
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
2   L A T E S T    R E P L I E S    (Newest First)
JonasKlim Posted - 12/10/2017 : 2:45:48 PM
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";
Shirley_GZ Posted - 12/09/2017 : 03:50:19 AM
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

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