// SCI Figure Hub | LabTalk | CC0-1.0 // Save in Origin User Files, then in Script Window run: // run.section(origin-script-xps-reverse.ogs, Main); [Main] // Activate the graph layer with binding energy in eV. double xlow = min(layer.x.from, layer.x.to); double xhigh = max(layer.x.from, layer.x.to); layer.x.from = xhigh; layer.x.to = xlow; xb.text$ = "Binding energy (eV)"; yl.text$ = "Intensity (a.u.)";