DataPlot-Class
DataPlot
The DataPlot class provides methods and properties common to all Origin data plots. An internal Origin data plot object is used to store the plot characteristics of an Origin data plot. It is contained in a graph layer on a graph page.
An Origin C DataPlot object is a wrapper object that is a reference to an internal Origin data plot object. Origin C wrapper objects do not actually exist in Origin and merely refer to the internal Origin object. Consequently, multiple Origin C wrapper objects can refer to the same internal Origin object. The DataPlot class is derived from the DataObjectBase and OriginObject classes from which it inherits methods and properties.
EX1
void DataPlot_ex1() { Worksheet wks; wks.Create("origin"); Dataset ds1(wks,0); Dataset ds2(wks,1); ds1.Data(1,20,1); ds2.Normal(20); GraphPage gp; gp.Create("origin"); GraphLayer gl(gp.GetName(), 0); gl.AddPlot(wks); if(!gl) return; DataPlot dp = gl.DataPlots(0); // Get first data plot in graph layer dp.SetColor(2); // Change color to green }
origin.h