Hello,
I have a problem that I've been trying to solve for a while. I have a line-plot with wavelength on the bottom x-axis. I want to create a second layer in which I will have corresponding energy on top. I know how to do this manually from the 'plot-details' menu (see screenshot), but how to do this in code? I tried as described below, but when I zoom in one layer, the other does not rescale.
double start_eV = X1;
double stop_eV = X2;
double start_nm = 1240/start_eV;
double stop_nm = 1240/stop_eV;
layer -n X;
X1 = start_nm;
X2 = stop_nm;
This is what I want to achieve:

Origin Ver. 8.5.0
Operating System: Win 7