Startup
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user