Hi,

Anyone have any idea why my zoomer zooms fine until I try to zoom into the area on the far right of the qwtplot?

It seems to work fine on the first 3/4 of my plot (from left to right), but when I zoom on my curve on the far right side of my plot it returns a blank area that is farther down the x axis than the area I selected.


any ideas?

Qt Code:
  1. class MyZoomer : public QwtPlotZoomer
  2. {
  3. public:
  4. MyZoomer(int xAxis, int yAxis, QwtPlotCanvas *canvas):
  5. QwtPlotZoomer(xAxis, yAxis, canvas)
  6. {
  7. setTrackerMode(ActiveOnly);
  8. }
  9. };
  10.  
  11. class MyPlot : public QwtPlot
  12. {
  13. CurveAttrib ** curves;
  14. public:
  15. MyPlot(){
  16. myZoomer[0] = new MyZoomer(QwtPlot::xBottom, QwtPlot::yLeft, this->canvas());
  17. myZoomer[1] = new MyZoomer(QwtPlot::xBottom, QwtPlot::yRight, this->canvas());
  18. enableAxis(QwtPlot::yRight);
  19. }
  20. MyZoomer *myZoomer[2];
  21.  
  22. void plotMyPlot(){
  23. ....
  24.  
  25. myZoomer[0]->setZoomBase();
  26. myZoomer[1]->setZoomBase();
  27. this->setAxisAutoScale(yLeft);
  28. this->setAxisAutoScale(yRight);
  29. this->setAxisAutoScale(xBottom);
  30. }
  31. };
  32. #endif
To copy to clipboard, switch view to plain text mode 

I'm not doing very fancy stuff with my zoomer but I know it has to be in my code because if I use a QwtPlotZoomer zoomer = new QwtPlotZoomer it works just fine

Thanks