T O P I C R E V I E W |
magicalmarshmallow |
Posted - 12/06/2013 : 2:27:19 PM OriginPro 8.0.63.988 SR6 Windows 7 x64
Hey, I am looking to centre a layer title on a plot in Origin. In later versions there is an option on the right click menu to add a layer title (which is centred)
Is there a solution or work around for this in OriginPro 8?
Please and Thanks
|
1 L A T E S T R E P L I E S (Newest First) |
greg |
Posted - 12/06/2013 : 3:15:54 PM First, you need to know the name of the text object you created. Hold down the Alt key and double-click on your text. Read the Object Name in the Programming Control dialog. Now you can execute this script (assumes the name was Text1):
text1.x = ( layer.x.from + layer.x.to ) / 2
If you happen to have a Log scale you will need to use:
text1.x = 10^(( log(layer.x.from) + log(layer.x.to) ) / 2)
|