diff options
-rw-r--r-- | gr-qtgui/lib/WaterfallDisplayPlot.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gr-qtgui/lib/WaterfallDisplayPlot.cc b/gr-qtgui/lib/WaterfallDisplayPlot.cc index ba15608e9..643370b96 100644 --- a/gr-qtgui/lib/WaterfallDisplayPlot.cc +++ b/gr-qtgui/lib/WaterfallDisplayPlot.cc @@ -306,11 +306,7 @@ WaterfallDisplayPlot::WaterfallDisplayPlot(QWidget* parent) _lastReplot = 0; _intensityColorMapType = INTENSITY_COLOR_MAP_TYPE_MULTI_COLOR; - - QwtLinearColorMap *colorMap = new QwtLinearColorMap(Qt::darkCyan, Qt::white); - colorMap->addColorStop(0.25, Qt::cyan); - colorMap->addColorStop(0.5, Qt::yellow); - colorMap->addColorStop(0.75, Qt::red); + QwtLinearColorMap *colorMap = new ColorMap_MultiColor(); d_data = new WaterfallData(_startFrequency, _stopFrequency, _numPoints, 200); @@ -488,6 +484,8 @@ WaterfallDisplayPlot::SetIntensityRange(const double minIntensity, emit UpdatedLowerIntensityLevel(minIntensity); emit UpdatedUpperIntensityLevel(maxIntensity); + d_data->setInterval(Qt::ZAxis, QwtInterval(minIntensity, maxIntensity)); + _UpdateIntensityRangeDisplay(); } |