The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Centred title in Originpro 8
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

magicalmarshmallow

10 Posts

Posted - 12/06/2013 :  2:27:19 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

greg

USA
1378 Posts

Posted - 12/06/2013 :  3:15:54 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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)
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000