Hi,
First of all, you can save the first graph you make as a template (you can do it by menu File: Save Template As when the graph is active). And then use the document command to loop over all the workbooks in the project for creating graphs.
In each loop cycle, firstly, use the win command to open the saved template, and then the plotxy X-Function can be used to add plots to the template. Because I don't know what is your data and how your graph looks like, here I just show a simple example on how to use the commands mentioned above.
// execute the script for all workbook in the project
document -e W
{
range rx = [%H]1!1; // x column
range ry = [%H]1!2:5; // multiple y columns
win -t p myTem.otp; // open the template, named myTem.otp
plotxy iy:=(rx, ry) plot:=202 ogl:=1; // plot line+symbol to layer 1
}
Penn