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]))]
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))
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))