Closedown

This commit is contained in:
gac-x03da
2019-05-16 11:18:54 +02:00
parent 0532bb6b4c
commit edb3aede5e

View File

@@ -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.