def get_data(self):
		# Get width number of raw samples so the number of frequency bins is
		# the same as the display width.  Add two because there will be mean/DC
		# values in the results which are ignored.
		samples = self.sdr.read_samples(freqshow.SDR_SAMPLE_SIZE)[0:self.width+2]
		# Run an FFT and take the absolute value to get frequency magnitudes.
		freqs = np.absolute(np.fft.fft(samples))
		# Ignore the mean/DC values at the ends.
		freqs = freqs[1:-1]
		# Shift FFT result positions to put center frequency in center.
		freqs = np.fft.fftshift(freqs)
		# Convert to decibels.
		freqs = 20.0*np.log10(freqs)
		# Update model's min and max intensities when auto scaling each value.
		if self.min_auto_scale:
			min_intensity = np.min(freqs)
			self.min_intensity = min_intensity if self.min_intensity is None \
				else min(min_intensity, self.min_intensity)
		if self.max_auto_scale:
			max_intensity = np.max(freqs)
			self.max_intensity = max_intensity if self.max_intensity is None \
				else max(max_intensity, self.max_intensity)
		# Update intensity range (length between min and max intensity).
		self.range = self.max_intensity - self.min_intensity
		# Return frequency intensities.
		return freqs
Set the view to an iso-metric view.
dataset/ETHPy150Open adafruit/FreqShow/model.py/FreqShowModel.get_data--crossover with--dataset/ETHPy150Open enthought/mayavi/tvtk/pyface/tvtk_scene.py/TVTKScene.isometric_view