summaryrefslogtreecommitdiff
path: root/gr-qtgui/apps/gr_psd_plot_c
diff options
context:
space:
mode:
Diffstat (limited to 'gr-qtgui/apps/gr_psd_plot_c')
-rwxr-xr-xgr-qtgui/apps/gr_psd_plot_c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gr-qtgui/apps/gr_psd_plot_c b/gr-qtgui/apps/gr_psd_plot_c
index d7424d0a28..faa0fc60a4 100755
--- a/gr-qtgui/apps/gr_psd_plot_c
+++ b/gr-qtgui/apps/gr_psd_plot_c
@@ -91,7 +91,8 @@ class my_top_block(gr.top_block):
self.srcs.append(gr.vector_source_c(data))
# Set default labels based on file names
- self.gui_snk.set_title(n, "{0}".format(f))
+ fname = f.split("/")[-1]
+ self.gui_snk.set_title(n, "{0}".format(fname))
n += 1
self.connect(self.srcs[0], self.skip)