summaryrefslogtreecommitdiff
path: root/gr-qtgui/apps/plot_form.py
diff options
context:
space:
mode:
authorPaul Garver <garverp@gatech.edu>2014-12-02 13:04:25 -0500
committerPaul Garver <garverp@gatech.edu>2014-12-02 13:04:25 -0500
commit3ee2c52ccb27b54bf626721001512f6013b648c3 (patch)
tree4d2c16c1d614d6ef72ebed8655ac3654f9a67a9d /gr-qtgui/apps/plot_form.py
parent4ec1ab5487a7555c534d7c9768b853995f0ea8f8 (diff)
qtgui: Fix Y-Axis timescale issues on gr_spectrogram_plot/gr_spectrogram_plot_* by adding a function to set the time per fft. Scale should also update when a new FFT size or sample rate is entered via the GUI
Diffstat (limited to 'gr-qtgui/apps/plot_form.py')
-rw-r--r--gr-qtgui/apps/plot_form.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/gr-qtgui/apps/plot_form.py b/gr-qtgui/apps/plot_form.py
index 75e39ec98e..931565bd3e 100644
--- a/gr-qtgui/apps/plot_form.py
+++ b/gr-qtgui/apps/plot_form.py
@@ -359,6 +359,7 @@ class plot_form(QtGui.QWidget):
sr = self.samp_rate_edit.text().toDouble()[0]
fr = self.freq_edit.text().toDouble()[0]
self.top_block.gui_snk.set_frequency_range(fr, sr)
+ self.top_block._samp_rate = sr
self.top_block.reset(self.top_block._start,
self.top_block._nsamps)