Hi Everyone,

in my program I want to be able to disable the autoscale for the y-axis and reenable it later.
I use a checkbox for this:

Qt Code:
  1. //std::vector<QwtPlot*> plots_;
  2. void MainWindow::on_freezeScaleBox_toggled(bool on)
  3. {
  4. for(int i = 0; i < plots_.size(); ++i)
  5. {
  6. plots_[i]->setAxisAutoScale(QwtPlot::yLeft, on);
  7. }
  8. }
To copy to clipboard, switch view to plain text mode 

When I first disable the autoaxisscale and then add some curves and some data, it is autoscaled anyway...
Any suggestions?