What about this:
const int margin = 30;
plot1
->plotLayout
()->setCanvasMargin
( margin,
QwtPlot::yLeft );
plot1
->plotLayout
()->setCanvasMargin
( margin,
QwtPlot::yRight );
plot2
->plotLayout
()->setCanvasMargin
( margin,
QwtPlot::yLeft );
plot2
->plotLayout
()->setCanvasMargin
( margin,
QwtPlot::yRight );
const int margin = 30;
plot1->plotLayout()->setCanvasMargin( margin, QwtPlot::yLeft );
plot1->plotLayout()->setCanvasMargin( margin, QwtPlot::yRight );
plot2->plotLayout()->setCanvasMargin( margin, QwtPlot::yLeft );
plot2->plotLayout()->setCanvasMargin( margin, QwtPlot::yRight );
To copy to clipboard, switch view to plain text mode
You probably need Qwt 6.1.1 - AFAIR 6.1.0 had a bug when setting canvas margins in combination with hidden axes.
Uwe
Bookmarks