It searches for the dataplot containing the given curve. If found, just refreshes the graph page, otherwise it adds the curve to the first layer of the page.
bool curve_update_in_page( curvebase & cuv, int nColor, GraphPage & gpg, bool bRescale = false )
TRUE if OK, otherwise FALSE.
EX1
//This example add curve with the data of column B of first worksheet's to a Graph. void curve_update_in_page_ex1() { WorksheetPage wksPage = Project.WorksheetPages(0); Worksheet wks = wksPage.Layers(0); if(wks) { Curve crvPlotted( wks, 1 ); GraphPage gp1; gp1.Create("origin"); int nColor = SYSCOLOR_BLACK; if(gp1 && crvPlotted) { curve_update_in_page(crvPlotted, nColor, gp1); } } }
curve_update
origin.h