color_map_
->addColorStop
(8.0 / 64.0,
QColor(0,
0,
252));
color_map_
->addColorStop
(24.0 / 64.0,
QColor(0,
254,
254));
color_map_
->addColorStop
(40.0 / 64.0,
QColor(255,
252,
0));
color_map_
->addColorStop
(56.0 / 64.0,
QColor(254,
0,
1));
...
...
spectrogram->setColorMap(...)
color_map_ = new QwtLinearColorMap(QColor(0, 0, 141), QColor(131, 0, 0));
color_map_->addColorStop(8.0 / 64.0, QColor(0, 0, 252));
color_map_->addColorStop(24.0 / 64.0, QColor(0, 254, 254));
color_map_->addColorStop(40.0 / 64.0, QColor(255, 252, 0));
color_map_->addColorStop(56.0 / 64.0, QColor(254, 0, 1));
...
QwtPlotSpectrogram * spectrogram = ...
...
spectrogram->setColorMap(...)
To copy to clipboard, switch view to plain text mode
Bookmarks