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
 Show "Divide by Factor" in axis label automaticall
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

SteffenHeu

Germany
1 Posts

Posted - 09/17/2020 :  12:57:33 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 2019 (64-bit)
9.6.0.172

Operating System: Win 10 Education 64 bit

Hey,

is there a way to automatically show the "divide by factor" input in the axis label? E.g a command you can enter to the description of the label. If the factor is set to 1E7 the label says "Area / 10^7 counts"? Or can ou only do that manually?

Thanks in advance

AKazak

Russia
1228 Posts

Posted - 09/17/2020 :  1:35:39 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by SteffenHeu

Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 2019 (64-bit)
9.6.0.172

Operating System: Win 10 Education 64 bit

Hey,

is there a way to automatically show the "divide by factor" input in the axis label? E.g a command you can enter to the description of the label. If the factor is set to 1E7 the label says "Area / 10^7 counts"? Or can ou only do that manually?

Thanks in advance




I like this smart idea.
LT can do this by taking layer.axis.label.divideBy (https://www.originlab.com/doc/LabTalk/ref/Layer-Axis-Label-obj) and putting it to xb.text$ (https://www.originlab.com/doc/LabTalk/ref/Text-Label-Options#Axis_TitleAxis_Title_Substitution).

---
Andrey
Go to Top of Page

Chris D

428 Posts

Posted - 09/17/2020 :  2:15:29 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
If want to enter a special command in the label, why not just enter the divide by factor itself? Either way, you are entering something so it's not really saving any work.

Thanks,
Chris Drozdowski
Originlab Technical Support
Go to Top of Page

AKazak

Russia
1228 Posts

Posted - 09/17/2020 :  2:56:43 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by Chris D

If want to enter a special command in the label, why not just enter the divide by factor itself? Either way, you are entering something so it's not really saving any work.

Thanks,
Chris Drozdowski
Originlab Technical Support




It saves time since a user should enter the factor manually two times (to factor value and axis title text).


---
Andrey
Go to Top of Page

Chris D

428 Posts

Posted - 09/23/2020 :  2:07:17 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi, Indeed it is as AKazak says.

Here is the proper formula to add Axis Tick Label Divide by Factor to an axis title manually. Double click on the title and replace it with one of the below.

For X axis

%(?X) $(layer.x.label.divideBy)


For Y Axis

%(?Y) $(layer.y.label.divideBy)


A suggestion is to create graph templates incorporating this code thereby reducing the amount of time you have to repeat this process.

Thanks,
Chris Drozdowski
Originlab Technical Support
Go to Top of Page

AKazak

Russia
1228 Posts

Posted - 09/24/2020 :  03:34:55 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by Chris D

Hi, Indeed it is as AKazak says.

Here is the proper formula to add Axis Tick Label Divide by Factor to an axis title manually. Double click on the title and replace it with one of the below.

For X axis

%(?X) $(layer.x.label.divideBy)


For Y Axis

%(?Y) $(layer.y.label.divideBy)


A suggestion is to create graph templates incorporating this code thereby reducing the amount of time you have to repeat this process.

Thanks,
Chris Drozdowski
Originlab Technical Support




Thank you, Chris.

---
Andrey
Go to Top of Page

snowli

USA
1448 Posts

Posted - 09/25/2020 :  4:09:11 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Andrey,

we improved this in just released beta6 to support
%(?X) / %(layer.x.label.divideBy$)


Thanks, Snow

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