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
 LabTalk scripted plotting + theme application

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
benderrr Posted - 08/05/2005 : 07:54:01 AM
Origin Version (Select Help-->About Origin): 7.5pro
Operating System: Winxp

Hi,
in order to automate my work I designed a piece of script. After script execution, I want to assign special colors and styles to the script-created plots via the application of a theme. However, the theme does not change colors or styles, the plot remains blacj/white.
What is wrong?

Here's the script:


def chambergraph //define macro (highlight script when executing)
{win -a chamberMoles; //activate worksheet
win -n plot ChamberMolesGraph; //create plot window
Graph ChamberMoles_B; //plot graphs into window
Graph ChamberMoles_C;
Graph ChamberMoles_D;
Graph ChamberMoles_E;
Graph ChamberMoles_F;
Graph ChamberMoles_G;
Graph ChamberMoles_H;
Graph ChamberMoles_I;
Graph ChamberMoles_J;
Graph ChamberMoles_K;
Graph ChamberMoles_L;
Graph ChamberMoles_M;
}

chambergraph;


Thanks for your help,
bender
2   L A T E S T    R E P L I E S    (Newest First)
benderrr Posted - 08/05/2005 : 08:44:24 AM
Thank you very much, Sir.
Mike Buess Posted - 08/05/2005 : 08:38:44 AM
Hi Bender,

The problem could be that you're not creating the graph from a template. In fact, the programming guide recommends that you use win -t rather than win -n to create graphs. Try this instead...

def chambergraph
{
//win -a chamberMoles; //activate worksheet (not necessary)
win -t plot; //create graph window from default template
win -r %H ChamberMolesGraph; //rename
Graph ChamberMoles_B; //plot graphs into window
Graph ChamberMoles_C;
Graph ChamberMoles_D;
Graph ChamberMoles_E;
Graph ChamberMoles_F;
Graph ChamberMoles_G;
Graph ChamberMoles_H;
Graph ChamberMoles_I;
Graph ChamberMoles_J;
Graph ChamberMoles_K;
Graph ChamberMoles_L;
Graph ChamberMoles_M;
}

Mike Buess
Origin WebRing Member

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