Browse Source

Marking lowest 5 VSWR point marking operation fixed.

klaute 2 years ago
parent
commit
7f9a28061e
1 changed files with 4 additions and 5 deletions
  1. 4
    5
      tools/meas.py

+ 4
- 5
tools/meas.py View File

@@ -561,13 +561,13 @@ if __name__ == "__main__":
561 561
 
562 562
             f.canvas.set_window_title("SWR meter measurement results")
563 563
 
564
+
564 565
             vswr_marker = []
565 566
             i = 0
566 567
             old = 1000
567
-            #for r in sorted(meas_ratio_f.items(), key=operator.itemgetter(1)):
568
-            for r in sorted(meas_ratio):
569
-              #vswr_marker.append(r[0])
570
-              vswr_marker.append(r)
568
+            for r in sorted(meas_ratio_f.items(), key=operator.itemgetter(1)):
569
+            #for r in sorted(meas_ratio_f):
570
+              vswr_marker.append(meas_freq.index(r[0]))
571 571
               if r > old:
572 572
                 i += 1
573 573
               old = r
@@ -587,7 +587,6 @@ if __name__ == "__main__":
587 587
             axarr[2].set_ylim([0, 1024])
588 588
 
589 589
             print "Please close the mathplot window to exit..."
590
-            plt.grid()
591 590
             plt.show()
592 591
 
593 592
         else: