Closedown

This commit is contained in:
gac-x03da
2019-05-31 16:02:11 +02:00
parent eec11c4b36
commit dca4e0418b
3 changed files with 16 additions and 7 deletions

View File

@@ -1,8 +1,8 @@
#Tue Feb 19 09:43:45 CET 2019
#Wed May 29 21:25:49 CEST 2019
colormap=Grayscale
colormapAutomatic=true
colormapAutomatic=false
colormapLogarithmic=false
colormapMax=4169.819
colormapMax=1000.0
colormapMin=0.0
dataMonitoring=false
dataPolling=500

View File

@@ -115,11 +115,14 @@ public class XPSSpectrum extends Panel {
scienta.getCurrentChannel().addListener(progressListener);
dvpAcqTime.setDevice(scienta.getAcquisitionTime());
startTimer(500, 100);
manualInitPlotData();
}
void manualInitPlotData(){
//Setting data so cam define ranges for detailed without initial
LinePlotSeries series = new LinePlotSeries("Data");
rangeSelectionPanel.setSeries(series);
series.setData(new double[]{valueLow.getValue(), valueHigh.getValue()}, new double[]{Double.NaN,Double.NaN});
series.setData(new double[]{valueLow.getValue(), valueHigh.getValue()}, new double[]{Double.NaN,Double.NaN});
}
@Override
@@ -143,6 +146,11 @@ public class XPSSpectrum extends Panel {
case "XPSSpectrum":
if (result instanceof Exception) {
//SwingUtils.showMessage(getComponent(), "Error in " + fileName, exception.getMessage());
if (detailedScan) {
} else {
manualInitPlotData();
}
} else {
if (detailedScan) {

View File

@@ -36,10 +36,11 @@ plots = plot(None, names)
for p in plots[1:]:
p.getAxis(p.AxisId.X).label = "kinetic energy"
p.getAxis(p.AxisId.X2).setLabel("binding energy")
#p.getAxis(p.AxisId.X2).inverted = True
p.getAxis(p.AxisId.X2).inverted = True
p = plots[0]
be_axis = plots[0].getAxis(p.AxisId.X2)
be_axis.inverted=True
be_axis.setLabel("binding energy")
spectrum_series = p.getSeries(0)
@@ -54,7 +55,7 @@ def get_binding_range():
ephot = ehi
eb1 = ephot - elo - workfunc
eb2 = ephot - ehi - workfunc
return eb1, eb2
return eb2, eb1
eb2, eb1 = get_binding_range()