Marking lowest 5 VSWR point marking operation fixed.

This commit is contained in:
klaute 2016-09-26 14:55:40 +02:00
parent 29a93cfda8
commit 7f9a28061e

View file

@ -561,13 +561,13 @@ if __name__ == "__main__":
f.canvas.set_window_title("SWR meter measurement results") f.canvas.set_window_title("SWR meter measurement results")
vswr_marker = [] vswr_marker = []
i = 0 i = 0
old = 1000 old = 1000
#for r in sorted(meas_ratio_f.items(), key=operator.itemgetter(1)): for r in sorted(meas_ratio_f.items(), key=operator.itemgetter(1)):
for r in sorted(meas_ratio): #for r in sorted(meas_ratio_f):
#vswr_marker.append(r[0]) vswr_marker.append(meas_freq.index(r[0]))
vswr_marker.append(r)
if r > old: if r > old:
i += 1 i += 1
old = r old = r
@ -587,7 +587,6 @@ if __name__ == "__main__":
axarr[2].set_ylim([0, 1024]) axarr[2].set_ylim([0, 1024])
print "Please close the mathplot window to exit..." print "Please close the mathplot window to exit..."
plt.grid()
plt.show() plt.show()
else: else: