From 4f8ca94b8375ff482f43a143c0055d583986e3bf Mon Sep 17 00:00:00 2001
From: trondeau <trondeau@221aa14e-8319-0410-a670-987f0aec2ac5>
Date: Thu, 13 Nov 2008 03:29:54 +0000
Subject: proper comparison of vectors; I thought I had already fixed this...

git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9984 221aa14e-8319-0410-a670-987f0aec2ac5
---
 gr-utils/src/python/gr_plot_const.py | 2 +-
 gr-utils/src/python/gr_plot_fft.py   | 2 +-
 gr-utils/src/python/gr_plot_psd.py   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

(limited to 'gr-utils/src')

diff --git a/gr-utils/src/python/gr_plot_const.py b/gr-utils/src/python/gr_plot_const.py
index 42c0260dcf..3553099552 100755
--- a/gr-utils/src/python/gr_plot_const.py
+++ b/gr-utils/src/python/gr_plot_const.py
@@ -140,7 +140,7 @@ class draw_constellation:
         
     def zoom(self, event):
         newxlim = self.sp_iq.get_xlim()
-        if(newxlim != self.xlim):
+        if(newxlim.all() != self.xlim.all()):
             self.xlim = newxlim
             r = self.reals[int(ceil(self.xlim[0])) : int(ceil(self.xlim[1]))]
             i = self.imags[int(ceil(self.xlim[0])) : int(ceil(self.xlim[1]))]
diff --git a/gr-utils/src/python/gr_plot_fft.py b/gr-utils/src/python/gr_plot_fft.py
index 69953f6815..59a3f286b6 100755
--- a/gr-utils/src/python/gr_plot_fft.py
+++ b/gr-utils/src/python/gr_plot_fft.py
@@ -165,7 +165,7 @@ class gr_plot_fft:
         
     def zoom(self, event):
         newxlim = self.sp_iq.get_xlim()
-        if(newxlim != self.xlim):
+        if(newxlim.all() != self.xlim.all()):
             self.xlim = newxlim
             xmin = max(0, int(ceil(self.sample_rate*(self.xlim[0] - self.position))))
             xmax = min(int(ceil(self.sample_rate*(self.xlim[1] - self.position))), len(self.iq))
diff --git a/gr-utils/src/python/gr_plot_psd.py b/gr-utils/src/python/gr_plot_psd.py
index b469d0cc8c..669d7b573a 100755
--- a/gr-utils/src/python/gr_plot_psd.py
+++ b/gr-utils/src/python/gr_plot_psd.py
@@ -188,7 +188,7 @@ class gr_plot_psd:
         
     def zoom(self, event):
         newxlim = self.sp_iq.get_xlim()
-        if(newxlim != self.xlim):
+        if(newxlim.all() != self.xlim.all()):
             self.xlim = newxlim
             xmin = max(0, int(ceil(self.sample_rate*(self.xlim[0] - self.position))))
             xmax = min(int(ceil(self.sample_rate*(self.xlim[1] - self.position))), len(self.iq))
-- 
cgit v1.2.3