- def draw_time(self):
- reals = self.iq.real
- imags = self.iq.imag
- self.plot_iq[0].set_data([self.time, reals])
- self.plot_iq[1].set_data([self.time, imags])
- self.sp_iq.set_xlim(min(self.time), max(self.time))
- self.sp_iq.set_ylim([1.5*min([min(reals), min(imags)]),
- 1.5*max([max(reals), max(imags)])])
-
- def draw_psd(self):
- self.plot_psd[0].set_data([self.freq, self.iq_psd])
- self.sp_psd.set_ylim([min(self.iq_psd)-10, max(self.iq_psd)+10])
-
- def draw_spec(self):
+ def draw_time(self, t, iq):
+ reals = iq.real
+ imags = iq.imag
+ self.plot_iq[0].set_data([t, reals])
+ self.plot_iq[1].set_data([t, imags])
+ self.sp_iq.set_xlim(t.min(), t.max())
+ self.sp_iq.set_ylim([1.5*min([reals.min(), imags.min()]),
+ 1.5*max([reals.max(), imags.max()])])
+
+ def draw_psd(self, f, p):
+ self.plot_psd[0].set_data([f, p])
+ self.sp_psd.set_ylim([p.min()-10, p.max()+10])
+ self.sp_psd.set_xlim([f.min(), f.max()])
+
+ def draw_spec(self, t, s):