summaryrefslogtreecommitdiff
path: root/gr-qtgui/apps/gr_spectrogram_plot_i
diff options
context:
space:
mode:
Diffstat (limited to 'gr-qtgui/apps/gr_spectrogram_plot_i')
-rwxr-xr-xgr-qtgui/apps/gr_spectrogram_plot_i15
1 files changed, 7 insertions, 8 deletions
diff --git a/gr-qtgui/apps/gr_spectrogram_plot_i b/gr-qtgui/apps/gr_spectrogram_plot_i
index 893df2a234..723291d4b4 100755
--- a/gr-qtgui/apps/gr_spectrogram_plot_i
+++ b/gr-qtgui/apps/gr_spectrogram_plot_i
@@ -54,16 +54,15 @@ class spectrogram_plot_i(plot_base.plot_base):
def main():
description = "Plots the spectrogram (waterfall) of a list of files. Files are a binary list of ints."
- (options, args) = plot_base.setup_options(description)
+ args = plot_base.setup_options(description)
- filelist = list(args)
- max_nsamples = plot_base.find_max_nsamples(filelist)
+ max_nsamples = plot_base.find_max_nsamples(args.files)
- tb = spectrogram_plot_i(filelist,
- options.center_frequency, options.sample_rate,
- options.psd_size,
- options.start, options.nsamples, max_nsamples,
- options.average);
+ tb = spectrogram_plot_i(args.files,
+ args.center_frequency, args.sample_rate,
+ args.psd_size,
+ args.start, args.nsamples, max_nsamples,
+ args.average);
main_box = plot_base.plot_spectrogram_form(tb, 'GNU Radio Time Plot')
main_box.show()