summaryrefslogtreecommitdiff
path: root/gr-qtgui/lib/freq_sink_f_impl.cc
diff options
context:
space:
mode:
authorDaulPavid <paul.david@ettus.com>2016-02-11 10:14:49 -0800
committerDaulPavid <paul.david@ettus.com>2016-02-12 11:35:14 -0800
commit311066b32ab653dc60890e94fd8303cd041ee173 (patch)
treeec104e74d79eba10f9509f80168e8ae0f33cb10e /gr-qtgui/lib/freq_sink_f_impl.cc
parentb4eb87fa583df1f233d107a2b1ff791216d3b214 (diff)
qtgui: Added the ability to control the Y axis label for the freq sink
- Useful if the input device is calibrated and one wants to display Power (dBm) rather than Relative Gain (dB)
Diffstat (limited to 'gr-qtgui/lib/freq_sink_f_impl.cc')
-rw-r--r--gr-qtgui/lib/freq_sink_f_impl.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/gr-qtgui/lib/freq_sink_f_impl.cc b/gr-qtgui/lib/freq_sink_f_impl.cc
index 5418eca9ec..359854593a 100644
--- a/gr-qtgui/lib/freq_sink_f_impl.cc
+++ b/gr-qtgui/lib/freq_sink_f_impl.cc
@@ -265,6 +265,13 @@ namespace gr {
}
void
+ freq_sink_f_impl::set_y_label(const std::string &label,
+ const std::string &unit)
+ {
+ d_main_gui->setYLabel(label, unit);
+ }
+
+ void
freq_sink_f_impl::set_update_time(double t)
{
//convert update time to ticks