summaryrefslogtreecommitdiff
path: root/gr-qtgui/lib/FrequencyDisplayPlot.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gr-qtgui/lib/FrequencyDisplayPlot.cc')
-rw-r--r--gr-qtgui/lib/FrequencyDisplayPlot.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/gr-qtgui/lib/FrequencyDisplayPlot.cc b/gr-qtgui/lib/FrequencyDisplayPlot.cc
index e93ced2d14..19ebac1a82 100644
--- a/gr-qtgui/lib/FrequencyDisplayPlot.cc
+++ b/gr-qtgui/lib/FrequencyDisplayPlot.cc
@@ -110,6 +110,7 @@ FrequencyDisplayPlot::FrequencyDisplayPlot(int nplots, QWidget* parent)
<< QColor(Qt::yellow) << QColor(Qt::gray) << QColor(Qt::darkRed)
<< QColor(Qt::darkGreen) << QColor(Qt::darkBlue) << QColor(Qt::darkGray);
+ // Create a curve for each input
// Automatically deleted when parent is deleted
for(int i = 0; i < d_nplots; i++) {
d_ydata.push_back(new double[d_numPoints]);
@@ -131,7 +132,8 @@ FrequencyDisplayPlot::FrequencyDisplayPlot(int nplots, QWidget* parent)
setLineColor(i, default_colors[i]);
}
- d_min_fft_plot_curve = new QwtPlotCurve("Minimum Power");
+ // Create min/max plotter curves
+ d_min_fft_plot_curve = new QwtPlotCurve("Min Hold");
d_min_fft_plot_curve->attach(this);
const QColor default_min_fft_color = Qt::magenta;
setMinFFTColor(default_min_fft_color);
@@ -141,8 +143,9 @@ FrequencyDisplayPlot::FrequencyDisplayPlot(int nplots, QWidget* parent)
d_min_fft_plot_curve->setRawSamples(d_xdata, d_min_fft_data, d_numPoints);
#endif
d_min_fft_plot_curve->setVisible(false);
+ d_min_fft_plot_curve->setZ(0);
- d_max_fft_plot_curve = new QwtPlotCurve("Maximum Power");
+ d_max_fft_plot_curve = new QwtPlotCurve("Max Hold");
d_max_fft_plot_curve->attach(this);
QColor default_max_fft_color = Qt::darkYellow;
setMaxFFTColor(default_max_fft_color);
@@ -152,6 +155,7 @@ FrequencyDisplayPlot::FrequencyDisplayPlot(int nplots, QWidget* parent)
d_max_fft_plot_curve->setRawSamples(d_xdata, d_max_fft_data, d_numPoints);
#endif
d_max_fft_plot_curve->setVisible(false);
+ d_max_fft_plot_curve->setZ(0);
d_lower_intensity_marker= new QwtPlotMarker();
d_lower_intensity_marker->setLineStyle(QwtPlotMarker::HLine);