Hi,
Do you mean that for each time you plot xy-data, you want to set both colors and symbols to increment? If so, you can try the following script, in which I have made a little change.
// Point to the graph layer
range L1 = [Graph1]1!;
int incColor=1; // color increment
int incShape=1; // symbol increment
int incCurrentPlot=1; // set current plot
// Loop over all sheets in all books
doc -e LB
{
// Check to see if workbook, so can leave out matrix books
if(5 != exist(%h))
{
// Declaring ranges
range rx=col(A);
range ry=col(B);
// Use plotxy X-function to add plot to specified layer
plotxy iy:=(rx,ry) plot:=201 color:=incColor size:=15 ogl:=L1;
win -a Graph1; // activate Graph1
layer.plot = incCurrentPlot; // set the newly created plot active
set %C -k incShape; // change the symbol of the active plot
incColor++; // next color
incCurrentPlot++; // next plot
incShape++; // next symbol
}
};
// Can use legend update XF so legend shows data range for example;
win -a Graph1;
legendupdate mode:=dr;
Penn