diff --git a/script/RFscan/GunScan.py b/script/RFscan/GunScan.py index 3aea47a..6be278b 100644 --- a/script/RFscan/GunScan.py +++ b/script/RFscan/GunScan.py @@ -42,5 +42,10 @@ try: finally: phase.close() # camtool.close() - -plot((E, dE), xdata = rf_phase, title="Phase scan") + + +p = plot(None,name="Energy")[0] +p.addSeries(LinePlotSeries("Energy spread")) +p.getSeries(0).setData(rf_phase, E) +p.getSeries(1).setData(rf_phase, dE) +#plot((E, dE), xdata = rf_phase, title="Phase scan")