This commit is contained in:
sfop
2017-07-15 09:01:03 +02:00
parent f1112532f1
commit d2d7f55c57
+9 -9
View File
@@ -71,15 +71,15 @@ try:
(fit_amplitude, fit_phase_deg, fit_offset, ph_crest, fit_x, fit_y) = hfitoff(energy , rf_phase)
except:
raise Exception("Fit failure")
#plot([energy, fit_y], ["data", "fit"], [rf_phase, fit_x])
plt = plot(None,name="data")[0]
plt.addSeries(LinePlotSeries("fit"))
plt.getSeries(0).setData(to_array(rf_phase,'d'), to_array(energy,'d'))
plt.getSeries(0).setPointSize(8)
plt.getSeries(0).setLinesVisible(False)
plt.getSeries(1).setPointsVisible(False)
plt.getSeries(1).setData(fit_x, fit_y)
plt.setLegendVisible(True)
plt = plot([energy, fit_y], ["data", "fit"], [rf_phase, fit_x])
#plt = plot(None,name="data")[0]
#plt.addSeries(LinePlotSeries("fit"))
#plt.getSeries(0).setData(to_array(rf_phase,'d'), to_array(energy,'d'))
#plt.getSeries(0).setPointSize(8)
#plt.getSeries(0).setLinesVisible(False)
#plt.getSeries(1).setPointsVisible(False)
#plt.getSeries(1).setData(fit_x, fit_y)
#plt.setLegendVisible(True)
caput(station + "-RSYS:GET-ONCREST-VSUM-PHASE", ph_crest)
caput(station + "-RSYS:GET-ONCREST-E-GAIN", fit_amplitude)
caput(station + "-RSYS:GET-FIT-PHASE-ARRAY", fit_x)