T O P I C R E V I E W |
pcvolkmar |
Posted - 08/16/2005 : 05:09:59 AM Origin Version (Select Help-->About Origin): Operating System: Win xp
Hello, I'm working with a few Graphics,all of them created from the same worksheet I would like to change the name (X/Y Axis title) for a new one, from the Script.
I try to do with Axis Object:
Graph1!layer1.x.labeltext$="nphot";
first my script creat a few graphics, and the names are: Graph1, Graph2 ...... Somebody can tell an advice? Thank a lot, Paula. |
1 L A T E S T R E P L I E S (Newest First) |
Mike Buess |
Posted - 08/16/2005 : 4:57:07 PM Hi Paula,
I'm not sure what property layer.x.labeltext$ controls but the axis titles are normal text labels called xb (lower), xt (top), yl (left) and yr (right). There are two ways you can change their text and the graph window (and layer) must be active for both...
win -a Graph1; // activate graph window lay -s 1; // select layer 1 (unnecessary if you only have one layer) label -xb "nphot"; // this creates the label if it doesn't already exist plot -c; // update graph window // - or - xb.text$ = "nphot"; // the label must already exist (update is not necessary)
Mike Buess Origin WebRing Member
Edited by - Mike Buess on 08/16/2005 5:06:02 PM |
|
|