For both questions the same answer: you have to remove the grid layout that is used in the PlotMatrix class and implement a new method

Qt Code:
  1. void PlotMatrix::layoutPlots( const QRect &rect )
  2. {
  3. // calculate and assign the geometries of your plots here
  4. ...
  5. }
To copy to clipboard, switch view to plain text mode 

In PlotMatrix::resizeEvent() and some other places that have an effect on the size of your plots you have to call:

Qt Code:
  1. layoutPlots( contentsRect() );
To copy to clipboard, switch view to plain text mode 
As you probably want to have the same size for the canvases ( not the plots ! ) you have to subtract the sizeHints() of the scales, legends and titles ( QwtPlot is a composite widget ! ).

Uwe