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
 Link Axes Scales
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Natacha

France
3 Posts

Posted - 06/02/2017 :  11:18:10 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello,

I am using OriginPro 9.1 and I would like to creat a second X axis (Top X) whose values are linked with the values of the bottom X so that :

Xtop = Xini / (Xini + 1/6)

with Xini the value of the bottom X.

I believe that I have to use the menu : Format/Layer Properties/Link Axes Scales
Could you please indicate me with which expression I have to fill the boxes for X1 and X2 ?

Thank you very much in advance.

Best regards,
Natacha Bourgeois

Natacha Bourgeois

arstern

USA
237 Posts

Posted - 06/02/2017 :  4:04:45 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

To link the the bottom and top axis. Yes select the Link Axes Scales tab. Next select straight (1 to 1) to align the top and bottom x-axis.

The Custom option customizes your x-axis range. Technically if you want to use the custom option, who you would need to input the initial x value from the bottom x-axis range as X1 and input the final x value from the bottom x-axis range as X2.


Thanks,
Aviel
OriginLab
Go to Top of Page

arstern

USA
237 Posts

Posted - 06/02/2017 :  4:33:16 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You may be able to do this in Origin 9.1. To customize your x-axis labels, you can also open the axis dialog box by double clicking the axis in the graph. Select Display and then input the expression x/(x+(1/6) in the Formula box. This will set the x top to your desired x values. Select the scale tab to specify your Major ticks.

Aviel
OriginLab
Go to Top of Page

Natacha

France
3 Posts

Posted - 06/06/2017 :  03:37:03 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Dear Aviel,

Thank you very much for your quick answer.

> The Custom option customizes your x-axis range. Technically if you want to use the custom option, who you would need to input the initial x value from the bottom x-axis range as X1 and input the final x value from the bottom x-axis range as X2.

I am afraid I don't understand what is called "initial" and "final x value from the bottom x-axis".

With a given bottom x-axis I would like to create a second axis, which has the following Xt values :

Xt = Xb / (Xb + 1/6)

with Xb the value of the bottom x-axis.

I am trying to use the Custom option and I am wondering what I have to write in the boxes for X1 and X2 ?

X1 = ?
X2 = ?

> You may be able to do this in Origin 9.1. To customize your x-axis labels, you can also open the axis dialog box by double clicking the axis in the graph. Select Display and then input the expression x/(x+(1/6) in the Formula box. This will set the x top to your desired x values. Select the scale tab to specify your Major ticks.

I tried to use this method, however, I did not found the Formula box.
Please find as attachment a screenshot of the axis dialog box, after selecting Display.

I stay at your disposal for any further information and I thank you very much in advance for your information.

Best regards,
Natacha





Natacha Bourgeois
Go to Top of Page

arstern

USA
237 Posts

Posted - 06/06/2017 :  5:35:45 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Natacha,

Theoretically you would set X1 = X1 + (X1 + (1/6)) and X2 = X2 + (X2 + (1/6)). However this step only works for linear equations. Therefore this will not work for your case.

See picture below, because the equation x/(x+(1/6)) is nonlinear, it does not set the corresponding values correctly for x-top axis.



Instead:
1) First plot graph (you will only need one layer).
2) Open the layer management by right clicking the number in the left corner of the graph and select Layer Management...


3) Select Axes and open the Top dropdown tab. Input the equation x/x+(1/6) into the formula box and Select Apply.


4) You may want to edit the significant digits for the top axis. Double click the axis and select Tick Labels. Input Custom for Display and edit the significant digits in Custom Format. The figure below also shows for version 9.4 where you can input the formula to set the x top axis to link with the x bottom axis.


For more information, the provided link is a blog post on how to make a double x graph:
http://blog.originlab.com/graphing/how-to-make-a-neat-double-x-graph

Thanks,
Aviel
OriginLab

Edited by - arstern on 06/06/2017 5:37:58 PM
Go to Top of Page

Natacha

France
3 Posts

Posted - 06/07/2017 :  08:08:19 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Dear Aviel,

Thank you very much for your clear explanations.
Everything works perfectly when following your instructions.

Again, thank you very much, it helps a lot.

Best regards,
Natacha


Natacha Bourgeois
Go to Top of Page

cool.maheshbansod

India
2 Posts

Posted - 05/23/2024 :  10:33:14 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello,

I am using Origin 2023b and want to plot a graph having two X axes (X1 - bottom, and X2 - top) with one Y axis (-left). The values for the top X2 axis are related by the formula [(1000/X1)-273]. I have tried several ways posted on this forum, but unfortunately, it did not work for me.
I have tried two different ways:
1) SeparateLayerX2Axis:
I have plotted a scatter graph, added Top-X Righ-Y Layer -> X1 axis range: 1 to 1.78 -> Scale of X2 axis: 727 (exactly = 1 on low X1 axis) to 288.7977528 (exactly = 1.78 on high X1 axis). Major Ticks: Type-Custom positions, position: 700 600 500 400 300. However, the tick mark values on the Top X2 axis are not exactly related to the values on X1 axis.
2) Using Link Axes - Custom:
Plotted a scatter graph -> Add Top-X Right-Y Layer -> Format -> Layer -> TopXRightY -> "Link Axes Scales"-> Link to: "Layer 1" -> In 'Link Axes in Child Layer to Parent' -> Custom: X1 = X1, X2 = [(1000/X1)-273].
X2 Axes Layer 2: Scale - from 727 to 288.7977528, Major Ticks: Type - Custom positions, Position: 700 600 500 400 300.
Now, the values of X2 axis are not exactly related to the value on the X1 axis. There is a shift in the Top X2 axis at the high as well as low scale range, as compared to the X1 axis. Because the data values from low X1 to high X1 axis are at 700, 680, 660, 640,......320, and 300. However, the Top X2 axis values are not exactly as they should be.
Could you please suggest a solution on how to plot the correct Top X2 axis in "Origin 2023b.
You can find the project file in the attachment of this message.
Thank you in advance!

https://my.originlab.com/ftp/forum_and_kbase/Images/LinkAxesData.zip
I need the graph like below:

Regards,

Mahesh
Go to Top of Page

ChaoC

USA
166 Posts

Posted - 05/24/2024 :  09:37:49 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello Manesh,

1. Create the scatter plot
2. Click the bottom X-axis to bring up the Mini toolbar and select Add Secondary Axis.
3. The Double X Type should be Functionally Mapped — Independent Ticks.
4. Direct Formula: (1000/x)-273
Inverse Formula: 1000/(x+273)

Please see:
https://blog.originlab.com/display-celsius-as-top-axis-in-arrhenius-plot
https://www.originlab.com/doc/Origin-Help/Mini-Toolbar?f=dl#Axis_2

Best,
Chao
Go to Top of Page

cool.maheshbansod

India
2 Posts

Posted - 05/25/2024 :  01:14:29 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Dear Chao,

Thank you very much for your help. It worked so smoothly. I am happy.

quote:
Originally posted by ChaoC

Hello Manesh,

1. Create the scatter plot
2. Click the bottom X-axis to bring up the Mini toolbar and select Add Secondary Axis.
3. The Double X Type should be Functionally Mapped — Independent Ticks.
4. Direct Formula: (1000/x)-273
Inverse Formula: 1000/(x+273)

Please see:
https://blog.originlab.com/display-celsius-as-top-axis-in-arrhenius-plot
https://www.originlab.com/doc/Origin-Help/Mini-Toolbar?f=dl#Axis_2

Best,
Chao



Regards,

Mahesh
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