Script execution
This commit is contained in:
+11
-4
@@ -106,10 +106,17 @@ try:
|
||||
if xdata is None:
|
||||
xdata = Scienta.spectrumX
|
||||
p.getSeries(0).setData(xdata, ydata)
|
||||
#eb_axis = p.chart.plot.getDomainAxis(1)
|
||||
#eb1 = Eph.take(100) - Scienta.lowEnergy.take(100) - 4.5
|
||||
#eb2 = Eph.take(100) - Scienta.highEnergy.take(100) - 4.5
|
||||
#eb_axis.setRange(eb2, eb1)
|
||||
|
||||
eb_axis = p.chart.plot.getDomainAxis(1)
|
||||
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
|
||||
eb_axis.setRange(eb2, eb1)
|
||||
|
||||
if save_scienta_image:
|
||||
image_array = Scienta.dataMatrix.read()
|
||||
|
||||
Reference in New Issue
Block a user