From 7f9a28061ea85c6e822b4cf2393cd9153d72c34b Mon Sep 17 00:00:00 2001 From: klaute Date: Mon, 26 Sep 2016 14:55:40 +0200 Subject: [PATCH] Marking lowest 5 VSWR point marking operation fixed. --- tools/meas.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tools/meas.py b/tools/meas.py index 1c16665..d31c94e 100644 --- a/tools/meas.py +++ b/tools/meas.py @@ -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: