Hi,

I need to align 2 plots : one containing a QwtPlotCurve and the other one a QwtPlotSpectrogram. Both are arranged in a vertical layout (QVBoxLayout - it's a waterfall plot).

I used some parts of the example (playground) "plotmatrix" to ensure that both plots stay aligned. BUT, there's one problem : when enabling the QwtPlotSpectrogram's right axis color bar, the plots are no more aligned.

can "plotmatrix" be easily updated to take in account the width of the color bar ?

Another solution is to create a 2x2 QGridLayout, put the curve in (0,0), the spectrogram in (1,0) and a QwtScaleWidget (with a color bar enabled) in (1,1). Otherwise, if having the yRight + color bar axis enabled on the QwtPlotCurve plot is not annoying, that also will fix the alignment issue.

Thanks.