// SCI Figure Hub | LabTalk | CC0-1.0 // Save in Origin User Files, then in Script Window run: // run.section(origin-script-xrd-rietveld.ogs, Main); [Main] // Activate a worksheet: A = 2theta, B = observed, C = calculated, // D = residual with the desired baseline offset already applied. range inputSheet = !; plotxy iy:=(1,2) plot:=201 color:=color(52,63,77); plotxy iy:=%(inputSheet)(1,3) plot:=200 color:=color(230,75,53) ogl:=; plotxy iy:=%(inputSheet)(1,4) plot:=200 color:=color(29,78,137) ogl:=; xb.text$ = "2\g(q) (degrees)"; yl.text$ = "Intensity (a.u.)"; page.width = 89 / 25.4 * page.resx;