Origin Version (Select Help-->About Origin): 7.5 Operating System: Windows XP
when I append a graph layer GraphPage gp; Layer gp.AppendLayers("origin");
the size & axes new layer doesn't automatically link to the parent layer
I want to set them so they do - effectively, set the parameters that we would access in the GUI through the "Plot Details" dialog, selecting the layer and then in the tabs "Size/Speed", "Link Axis scales" and "Display".
Intuitively I need to attach a tree - but what is the syntax for the relevent tree ?
Also, where is the documentation for the Axes class ? Not in the Programming help file or the Doxygen help download from the file share. The following code fragment shows the data fields, but setting Incrementby didn't behave how I'd expect
Axis xAx = gl.XAxis; Tree tr_XaxisFormat; tr_XaxisFormat = gl.XAxis.Scale; out_tree(tr_XaxisFormat);
As you've discovered, this area is not well documented and most Origin object properties must be mapped to a tree by trial and error. I've found the following mappings for graph layer properties. (There are probably more.)
The Scale tree represents settings found on Format > Axes > X Axis (Scale tab). IncrementBy = 0 means the Increment radio button is selected while IncrementBy = 1 means the # Major Ticks button is selected. Value is the Increment value.