Marking lowest 5 VSWR point marking operation fixed.
This commit is contained in:
parent
29a93cfda8
commit
7f9a28061e
1 changed files with 4 additions and 5 deletions
|
@ -561,13 +561,13 @@ if __name__ == "__main__":
|
|||
|
||||
f.canvas.set_window_title("SWR meter measurement results")
|
||||
|
||||
|
||||
vswr_marker = []
|
||||
i = 0
|
||||
old = 1000
|
||||
#for r in sorted(meas_ratio_f.items(), key=operator.itemgetter(1)):
|
||||
for r in sorted(meas_ratio):
|
||||
#vswr_marker.append(r[0])
|
||||
vswr_marker.append(r)
|
||||
for r in sorted(meas_ratio_f.items(), key=operator.itemgetter(1)):
|
||||
#for r in sorted(meas_ratio_f):
|
||||
vswr_marker.append(meas_freq.index(r[0]))
|
||||
if r > old:
|
||||
i += 1
|
||||
old = r
|
||||
|
@ -587,7 +587,6 @@ if __name__ == "__main__":
|
|||
axarr[2].set_ylim([0, 1024])
|
||||
|
||||
print "Please close the mathplot window to exit..."
|
||||
plt.grid()
|
||||
plt.show()
|
||||
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue