// SCI Figure Hub | LabTalk | CC0-1.0 // Save in Origin User Files, then in Script Window run: // run.section(origin-script-uvvis-tauc.ogs, Main); [Main] // Activate a worksheet: A = wavelength (nm), B = absorption coefficient. // The two derived columns are appended. Edit the exponent for the transition model. int energyColumn = wks.ncols + 1; int taucColumn = energyColumn + 1; wks.ncols = taucColumn; col($(energyColumn)) = 1239.84 / col(1); col($(taucColumn)) = (col(2) * col($(energyColumn)))^2; plotxy iy:=($(energyColumn),$(taucColumn)) plot:=200; xb.text$ = "Photon energy (eV)"; yl.text$ = "(\g(a)h\g(n))\+(2)";