summaryrefslogtreecommitdiff
path: root/gr-qtgui/lib/timerasterdisplayform.cc
diff options
context:
space:
mode:
authorJeff Long <willcode4@gmail.com>2021-01-12 19:20:10 -0500
committerMartin Braun <martin@gnuradio.org>2021-01-17 01:10:38 -0800
commit947752ae5f5853144ca9c28f3e50cfee02dd41a0 (patch)
treedd5fd8f33b373661d67ddb1e400b519e7c062690 /gr-qtgui/lib/timerasterdisplayform.cc
parentefc9ca261a68bd67f8cac1ef976fdabdf6d16ad4 (diff)
qtgui:Added Time Raster Sink Control Axis Configuration
This update allows a time raster sink's axis minimum, maximum, and label to now be specified in the block configuration options. This allows the block to be formatted to match a waterfall plot in terms of having frequency on the lower axis. Based on PR from ghostop14 <ghostop14@gmail.com> Signed-off-by: Jeff Long <willcode4@gmail.com>
Diffstat (limited to 'gr-qtgui/lib/timerasterdisplayform.cc')
-rw-r--r--gr-qtgui/lib/timerasterdisplayform.cc24
1 files changed, 24 insertions, 0 deletions
diff --git a/gr-qtgui/lib/timerasterdisplayform.cc b/gr-qtgui/lib/timerasterdisplayform.cc
index 3ce29731b5..360cd65a6d 100644
--- a/gr-qtgui/lib/timerasterdisplayform.cc
+++ b/gr-qtgui/lib/timerasterdisplayform.cc
@@ -177,6 +177,30 @@ void TimeRasterDisplayForm::customEvent(QEvent* e)
}
}
+void TimeRasterDisplayForm::setXAxis(double min, double max)
+{
+ getPlot()->setXAxis(min, max);
+ getPlot()->replot();
+}
+
+void TimeRasterDisplayForm::setXLabel(const std::string& label)
+{
+ getPlot()->setXLabel(label);
+ getPlot()->replot();
+}
+
+void TimeRasterDisplayForm::setYAxis(double min, double max)
+{
+ getPlot()->setYAxis(min, max);
+ getPlot()->replot();
+}
+
+void TimeRasterDisplayForm::setYLabel(const std::string& label)
+{
+ getPlot()->setYLabel(label);
+ getPlot()->replot();
+}
+
void TimeRasterDisplayForm::setNumRows(double rows)
{
getPlot()->setNumRows(rows);