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.
GraphLayer gl(gp.GetName(), 0);
DataPlot dp = gl.DataPlots(0); // Get first data plot in graph layer
dp.SetColor(2); // Change color to green