Hi, I'm redrawing the scales on qwtPlot each time a user checks a button using QwtScaleDraw, but how do I refresh the axis scale drawing (or how do I get label() to be called?) I tried d_plot->replot(), d_plot->updateAxes(); but the axis labels did not change until i either zoom or pan the plot.

Thank you

Qt Code:
  1. class LatLonScaleDraw: public QwtScaleDraw
  2. {
  3. public:
  4. LatLonScaleDraw() {}
  5.  
  6. virtual QwtText label(double v) const
  7. {
  8. if (...)
  9. return (QString::number(v));
  10. else
  11. return (QString::number(v/2));
  12. }
  13. };
To copy to clipboard, switch view to plain text mode