QwtPlotSpectrogram: How to choose plot range?
I have multiple spectrogram plots (Qwt5) in my application, with different value ranges. However, I want to have two plots to have the same scale in their plots. I know how to tweak the ScaleAxisWidget to show the same range for both plots (e.g. from -1 to 1). But the QwtPlotSpectrogram itself still shows a different range, encoded with a different color map. The setColormap function for the QwtPlotSpectrogram only allows me to specify the color map, not the value range, as is the case with the ScaleAxisWidget. How can I work around this?
Re: QwtPlotSpectrogram: How to choose plot range?
Quote:
Originally Posted by
root_42
I have multiple spectrogram plots (Qwt5) in my application, with different value ranges. However, I want to have two plots to have the same scale in their plots.
QwtPlot::setAxisScale();
Quote:
The setColormap function for the QwtPlotSpectrogram only allows me to specify the color map, not the value range. How can I work around this?
With Qwt 5 you have to implement QwtRasterData::range(), with Qwt 6 you can use QwtRasterData::setInterval.
Uwe