Hi,
About how to plot, please refer to Plotting. You can use your own template when creating a graph, and then add plot to this graph. For example, suppose the template is named "Line00":
void simple_line_plot_ex()
{
Worksheet wks = Project.ActiveLayer(); // get the active worksheet
if( !wks )
{
out_str("Please activate one worksheet with data");
return;
}
GraphPage gp;
gp.Create("Line00"); // create a graph with Line00 template
GraphLayer gl = gp.Layers(0); // layer 1 of the graph
Curve crv(wks, 0, 1);
int nPlot = gl.AddPlot(crv, IDM_PLOT_LINE); // add a line plot to the graph, return plot index
if( nPlot >= 0 )
gl.Rescale(); // rescale the graph
}
Penn