| 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 |
|
|