Origin Ver. and Service Release (Select Help-->About Origin): Operating System: Windows 10 Pro
I added a second layer for a Top-X axis. I am trying to link this axis to the bottom axis using a user defined function. It appears that Origin is not doing the linking correctly; the tick label values on the top axis are incorrect for the given values of the bottom axis (see figure below). I am entering the linking equation (circled in red) as
X1 = 23.429+80.890*(Cos(x1*3.14159/180))^0.323 ....(same thing for X2)
Since your second x axis tick position is a nonlinear transformation, so other than the settings you already made, you need to set formula for axis tick positions. See below: Direct Formula: -acos(((x-23.429)/80.890)^(1/0.323))*180/pi Inverse Formula: 23.429+80.890*cos(-x/180*pi)^0.323
If you would like to have ticks of upper x axis to be aligned with bottom axis, you just need one layer, but set upper x axis tick label with formula: 23.429+80.890*cos(-x/180*pi)^0.323
Thank you, James, for your reply. I tried both methods: adding the top x-axis in the same layer and in a separate layer. Doing it in the same layer was more convenient. Adding a second layer gives the flexibility of having separate tick positions but I couldn't figure out how not to make the tick labels cluttered (or even choose their positions).
The advantage of the double-layer method is that you can customize the upper tick positions. While for the one layer method, the tick position has to be the same for two x axis. See below: