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
 LabTalk scripted plotting + theme application
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

benderrr

Germany
Posts

Posted - 08/05/2005 :  07:54:01 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

Mike Buess

USA
3037 Posts

Posted - 08/05/2005 :  08:38:44 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

benderrr

Germany
Posts

Posted - 08/05/2005 :  08:44:24 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you very much, Sir.
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