diff options
author | Jeff Long <willcode4@gmail.com> | 2021-01-12 19:20:10 -0500 |
---|---|---|
committer | Martin Braun <martin@gnuradio.org> | 2021-01-17 01:10:38 -0800 |
commit | 947752ae5f5853144ca9c28f3e50cfee02dd41a0 (patch) | |
tree | dd5fd8f33b373661d67ddb1e400b519e7c062690 /gr-qtgui/python/qtgui/bindings/time_raster_sink_f_python.cc | |
parent | efc9ca261a68bd67f8cac1ef976fdabdf6d16ad4 (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/python/qtgui/bindings/time_raster_sink_f_python.cc')
-rw-r--r-- | gr-qtgui/python/qtgui/bindings/time_raster_sink_f_python.cc | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gr-qtgui/python/qtgui/bindings/time_raster_sink_f_python.cc b/gr-qtgui/python/qtgui/bindings/time_raster_sink_f_python.cc index 8c640d6101..4665015eeb 100644 --- a/gr-qtgui/python/qtgui/bindings/time_raster_sink_f_python.cc +++ b/gr-qtgui/python/qtgui/bindings/time_raster_sink_f_python.cc @@ -76,6 +76,32 @@ void bind_time_raster_sink_f(py::module& m) }, D(time_raster_sink_f, pyqwidget)) + .def("set_x_range", + &time_raster_sink_f::set_x_range, + py::arg("min"), + py::arg("max"), + D(time_raster_sink_f, set_x_range)) + + + .def("set_x_label", + &time_raster_sink_f::set_x_label, + py::arg("label"), + D(time_raster_sink_f, set_x_label)) + + + .def("set_y_range", + &time_raster_sink_f::set_y_range, + py::arg("min"), + py::arg("max"), + D(time_raster_sink_f, set_y_range)) + + + .def("set_y_label", + &time_raster_sink_f::set_y_label, + py::arg("label"), + D(time_raster_sink_f, set_y_label)) + + .def("set_update_time", &time_raster_sink_f::set_update_time, py::arg("t"), |