Author |
Topic |
|
CrazyBignate
USA
4 Posts |
Posted - 06/21/2010 : 2:48:28 PM
|
Origin Ver: 8.1 Operating System: Windows XP
Hello,
I have been working on plotting xy scatter plots from different work books into one graph. I currently have code working to do so, but each data set is set to the default color of black. I am having trouble utilizing the "set" function to get the autocolor sequence for each dataset.
Here is my working code thus far (with each dataset colored black),
// Point to the graph layer range rGly = [Graph1]1!;
// Loop over all sheets in all books doc -e LB {
// Check to see if workbook if(2 == exist(%h,2)) { // Declaring ranges range rx=col(Q); range ry=col(R);
// Use plotxy X-function to add plot to specified layer plotxy iy:=(rx,ry) plot:=201 ogl:=rGly; //Naming the graph page.label$="Frequency Shift vs. Auxilary Voltage Shift";
} };
//Legend update XF so legend shows data range; win -a Graph1; legendupdate mode:=dr;
////////////////////////////////////
Any help would be greatly appreciated, thanks!
|
|
CrazyBignate
USA
4 Posts |
Posted - 06/21/2010 : 5:20:20 PM
|
Nevermind, figured it out. |
|
|
hholst
1 Posts |
Posted - 11/17/2010 : 09:09:46 AM
|
Hi,
i have the same problem here . Can you please post your solution? Thanks! |
|
|
greg
USA
1379 Posts |
Posted - 11/24/2010 : 11:17:15 AM
|
I do not know what solution CrazyBignate used, but when you have multiple plots in a layer, you can group them with script which will automatically apply group color options:
layer -g;
Once you have done that, you can also apply a theme to the group:
themeApply2g "Color Publication";
|
|
|
|
Topic |
|
|
|