diff --git a/script/XPSSpectrum.py b/script/XPSSpectrum.py index 60879dee..e1b4d425 100644 --- a/script/XPSSpectrum.py +++ b/script/XPSSpectrum.py @@ -47,7 +47,27 @@ for p in plots[1:]: p = plots[0] spectrum_series = p.getSeries(0) -spectrum_eb_axis = p.chart.plot.getDomainAxis(1) +jf = p.chart.plot +eb_axis = NumberAxis("binding energy") +eb_axis.setRange(-100.0, 100.0) +spectrum_eb_axis = jf.getDomainAxis(1) +jf.setDomainAxis(1, eb_axis) +jf.getDomainAxis(1).labelPaint = jf.getDomainAxis(0).labelPaint +jf.getDomainAxis(1).labelFont = jf.getDomainAxis(0).labelFont +jf.getDomainAxis(1).tickLabelPaint = jf.getDomainAxis(0).tickLabelPaint +jf.getDomainAxis(1).tickLabelFont = jf.getDomainAxis(0).tickLabelFont +""" +ephot = Eph.take(100) +elo = Scienta.lowEnergy.take(100) +ehi = Scienta.highEnergy.take(100) +workfunc = 4.5 +if ephot is not float or ephot < 0.: + ephot = ehi +eb1 = ephot - elo - workfunc +eb2 = ephot - ehi - workfunc +""" + + def plot_cur_spectrum_eb(): """ plot online spectrum function for forked task.