Origin Ver. and Service Release (Select Help-->About Origin): pro8.5
Operating System: Win7
hi to everybody!
Again the problem appeared in my first program in Ogirin C.
I am trying to build 6 graphs. Till now I´ve found only one way to do it and use it but I still need to define some parameters as legend, line color and thickness, symbol type, scale number size and so on...
This is the code i use for plotting:
Worksheet wksdata("[Sun-Results.xls]Statistics");
GraphPage gp;
gp.Create("Origin");
while(gp.Layers.Count() < 6)
{
gp.AddLayer();
}
graph_arrange_layers(gp, 3, 2);
// Add XY data from worksheet to graph each layers
int index = 4;
foreach(GraphLayer gl in gp.Layers)
{
DataRange dr;
dr.Add(wksdata, 1, "X");
dr.Add(wksdata, index+1, "Y");
if( gl.AddPlot(dr, IDM_PLOT_LINESYMB) >= 0 )
gl.UngroupPlots(0); // ungroup plots
gl.Rescale();
index++;
}
How i can improve it with all plotting settings and maybe separate them and get plots one by one?