summaryrefslogtreecommitdiff
path: root/gr-qtgui/src/lib/FrequencyDisplayPlot.cc
diff options
context:
space:
mode:
authortrondeau2009-04-26 22:14:25 +0000
committertrondeau2009-04-26 22:14:25 +0000
commitb29ba40b81eb20cdb4ef92f99d1291d3d64ef5d2 (patch)
tree9d6eeb60b5daa9d05bd52833633b9f2dc2bf72e0 /gr-qtgui/src/lib/FrequencyDisplayPlot.cc
parentba59e6384ac558f97a4530a69f8b8fc1b99ace0b (diff)
downloadgnuradio-b29ba40b81eb20cdb4ef92f99d1291d3d64ef5d2.tar.gz
gnuradio-b29ba40b81eb20cdb4ef92f99d1291d3d64ef5d2.tar.bz2
gnuradio-b29ba40b81eb20cdb4ef92f99d1291d3d64ef5d2.zip
Now adding y-axis controls for frequency domain plot.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10923 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-qtgui/src/lib/FrequencyDisplayPlot.cc')
-rw-r--r--gr-qtgui/src/lib/FrequencyDisplayPlot.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/gr-qtgui/src/lib/FrequencyDisplayPlot.cc b/gr-qtgui/src/lib/FrequencyDisplayPlot.cc
index 4f9bfdd95..63d68b9b3 100644
--- a/gr-qtgui/src/lib/FrequencyDisplayPlot.cc
+++ b/gr-qtgui/src/lib/FrequencyDisplayPlot.cc
@@ -118,7 +118,7 @@ FrequencyDisplayPlot::FrequencyDisplayPlot(QWidget* parent)
setAxisTitle(QwtPlot::xBottom, "Frequency (Hz)");
setAxisScaleEngine(QwtPlot::yLeft, new QwtLinearScaleEngine);
- setAxisScale(QwtPlot::yLeft, -210, 5);
+ set_yaxis(-210, 5);
setAxisTitle(QwtPlot::yLeft, "Power (dB)");
// Automatically deleted when parent is deleted
@@ -223,6 +223,12 @@ FrequencyDisplayPlot::~FrequencyDisplayPlot()
}
void
+FrequencyDisplayPlot::set_yaxis(double min, double max)
+{
+ setAxisScale(QwtPlot::yLeft, min, max);
+}
+
+void
FrequencyDisplayPlot::SetFrequencyRange(const double constStartFreq,
const double constStopFreq,
const double constCenterFreq,