summaryrefslogtreecommitdiff
path: root/gr-utils/src/python/gr_plot_const.py
diff options
context:
space:
mode:
authorTom Rondeau2011-01-16 13:40:20 -0500
committerTom Rondeau2011-01-16 13:40:20 -0500
commitead0819388bc03555c9182f27176aac6ea2a8bbc (patch)
tree91eb90167c855bf49df9811f434ad6e69c15d7fb /gr-utils/src/python/gr_plot_const.py
parenta8e021e949fca067cf2df5a7cbb7c68ac21b8935 (diff)
downloadgnuradio-ead0819388bc03555c9182f27176aac6ea2a8bbc.tar.gz
gnuradio-ead0819388bc03555c9182f27176aac6ea2a8bbc.tar.bz2
gnuradio-ead0819388bc03555c9182f27176aac6ea2a8bbc.zip
Fixing up fft and constellation plot to better handle zooming.
Diffstat (limited to 'gr-utils/src/python/gr_plot_const.py')
-rwxr-xr-xgr-utils/src/python/gr_plot_const.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-utils/src/python/gr_plot_const.py b/gr-utils/src/python/gr_plot_const.py
index 9e4920776..5dd08c9a0 100755
--- a/gr-utils/src/python/gr_plot_const.py
+++ b/gr-utils/src/python/gr_plot_const.py
@@ -138,7 +138,7 @@ class draw_constellation:
def zoom(self, event):
newxlim = scipy.array(self.sp_iq.get_xlim())
curxlim = scipy.array(self.xlim)
- if(newxlim.all() != curxlim.all()):
+ if(newxlim[0] != curxlim[0] or newxlim[1] != curxlim[1]):
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]))]