Beginner question, I want to make button to switch between Log and Linear axis. How to determine which transformation is active without declaring new variable ?
Qt Code:
  1. void HistPlot::switchLogLin()
  2. {
  3. if(plot->axisScaleDraw(QwtPlot::yLeft)-> ?....== ? )
  4. plot->setAxisScaleEngine(QwtPlot::yLeft, new QwtLogScaleEngine);
  5. else plot->setAxisScaleEngine(QwtPlot::yLeft, new QwtLinearScaleEngine);
  6. }
To copy to clipboard, switch view to plain text mode 

Thanks

Martin