code: def set_bin_window(self, bin_size=None, window_size=None):
          
          bin_size = bin_size or self.bin_size
          window_size = window_size or self.window_size
          assert 1e-6 < bin_size < 1e3
          assert 1e-6 < window_size < 1e3
          assert bin_size < window_size
          self.bin_size = bin_size
          self.window_size = window_size
          # Set the status message.
          b, w = self.bin_size * 1000, self.window_size * 1000
          self.set_status('Bin: {:.1f} ms. Window: {:.1f} ms.'.format(b, w))
docs: Set the bin and window sizes.