The Scale class provides methods and properties common to all Origin axis scales. Two scale objects (one X scale and one Y scale) are contained in each graph layer on each graph page.
An Origin C Scale object is a wrapper object that is a reference to an internal Origin scale 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 Scale class is derived from the OriginObject class from which it inherits methods and properties.
if(gl) // If valid graph layer...
Scale sc(gl.X); // Get X scale object from graph layer
sc.From = 0.01; // Assign scale from value
sc.To = 1000; // assign scale to value
sc.Type = LOG10_SPACE; // Set axis scale as Log10
sc.Inc = 1; // set axis scale increment to 1