Hellow!, i have one problem, for example i have QwtPlot, 2 curve and zoom
1 curve: graph of function: x^2
2 curve: graph of function: x^3
If i add 1 curve and after it 2 curve program called replot() and change size canvas inside the plot:
b03ab41728d2f8993ec75bfd3867d69e.jpg
But if 1 add 1 curve, after it use zoom, program dont change size canvas inside the plot
8dda6827df98d91a26c9991f1a61ac89.jpg

This function i called when i want to add some graph
Qt Code:
  1. void RGraphics::setGraphics()
  2. {
  3. graphicsPlot->enableZoomMode(false);
  4. //this->getFunctionListWidget()->getZoomButton()->setChecked(false);
  5.  
  6. //Delete all items
  7. graphicsPlot->detachItems();
  8. graphicsPlot->drawGrid();
  9.  
  10. /***************
  11.   *** Add curve ***
  12.   */**************
  13.  
  14. graphicsPlot->replot();
  15. graphicsPlot->getZoomer()->setZoomBase();
  16. }
To copy to clipboard, switch view to plain text mode 
Zoom code i copy from qwt example:
Qt Code:
  1. //Zoom
  2. d_zoomer[0] = new Zoomer( QwtPlot::xBottom, QwtPlot::yLeft,
  3. this->canvas());
  4. d_zoomer[0]->setRubberBand(QwtPicker::RectRubberBand);
  5. d_zoomer[0]->setRubberBandPen(QColor(Qt::blue));
  6. d_zoomer[0]->setTrackerMode(QwtPicker::ActiveOnly);
  7. d_zoomer[0]->setTrackerPen(QColor(Qt::white));
  8.  
  9. d_zoomer[1] = new Zoomer(QwtPlot::xTop, QwtPlot::yRight,this->canvas());
To copy to clipboard, switch view to plain text mode 
Qt Code:
  1. void RGraphicsPlot::enableZoomMode(bool on)
  2. {
  3. d_panner->setEnabled(on);
  4.  
  5. d_zoomer[0]->setEnabled(on);
  6. d_zoomer[0]->zoom(0);
  7.  
  8. d_zoomer[1]->setEnabled(on);
  9. d_zoomer[1]->zoom(0);
  10.  
  11. d_picker->setEnabled(!on);
  12.  
  13. if(!on)
  14. this->setAutoReplot(true); //I try to use it, but it is dont help
  15. }
To copy to clipboard, switch view to plain text mode 
In advance thank you for your help!