Guess the problem is in QwtPlotRasterItem::draw:
imageSize.setWidth( qRound( imageArea.width() / pixelRect.width() ) );
imageSize.setWidth( qRound( imageArea.width() / pixelRect.width() ) );
To copy to clipboard, switch view to plain text mode
What happens if you change this line to:
double w = imageArea.width() / pixelRect.width();
w = qMin( paintRect.width(), w );
imageSize.setWidth( qRound( w ) );
double w = imageArea.width() / pixelRect.width();
w = qMin( paintRect.width(), w );
imageSize.setWidth( qRound( w ) );
To copy to clipboard, switch view to plain text mode
The same for the height, but in your case pixelRect.height() is usually below paintRect.height().
Uwe
Bookmarks