I want to disable contents autoscaling of QwtPlot, but i don't know how do this.

I wrote a simple hack for this:
Qt Code:
  1. class Plot : public QwtPlot
  2.  
  3. ...
  4.  
  5. bool Plot::eventFilter(QObject* o, QEvent* e)
  6. {
  7. if (o == canvas())
  8. {
  9. if (e->type() == QEvent::Resize)
  10. {
  11. QResizeEvent* re = static_cast<QResizeEvent*> (e);
  12. setAxisScale(QwtPlot::xBottom, 0, re->size().width());
  13. setAxisScale(QwtPlot::yLeft, 0, re->size().height());
  14. replot();
  15. }
  16. }
  17.  
  18. return QwtPlot::eventFilter(o, e);
  19. }
To copy to clipboard, switch view to plain text mode 
But it looks ugly (

This screenshots points to what i mean:
my_needs.jpg

What can i do?