You can use ‘’GObject’’.’’’Connect’’’ to create a leader line connecting between source and target object. The leader line object has no name. It can be accessed by GConnector.
GConnector object can be used to read/control the properties of annotation leader line. For example, we can change the leader line type by GConnector.type property. For more details, you can see examples below.
GConnector properties can be accessed using the following syntax:
string path$ = system.path.program$+"Samples\Curve Fitting\";
fname$ = path$ + "Linear Fit.dat";
// import the files
plotxy iy:=(1,2) plot:=202; //plot a graph
label "this is a Line+Symbol plot"; //add a text to the graph
GObject aa = [Graph1]1!text; //name the object to "aa"
range rr = 1!1;
GConnector cc = aa.Connect(rr, 1, 1, 3); //connect aa to the plot
cc.type=5; //change tether to Step-Horz and turn at 70% horizontal length
cc.line.color=2; // set tether color to red