P@u1
26th July 2011, 16:33
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:
//std::vector<QwtPlot*> plots_;
void MainWindow::on_freezeScaleBox_toggled(bool on)
{
for(int i = 0; i < plots_.size(); ++i)
{
plots_[i]->setAxisAutoScale(QwtPlot::yLeft, on);
}
}
When I first disable the autoaxisscale and then add some curves and some data, it is autoscaled anyway...
Any suggestions?
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:
//std::vector<QwtPlot*> plots_;
void MainWindow::on_freezeScaleBox_toggled(bool on)
{
for(int i = 0; i < plots_.size(); ++i)
{
plots_[i]->setAxisAutoScale(QwtPlot::yLeft, on);
}
}
When I first disable the autoaxisscale and then add some curves and some data, it is autoscaled anyway...
Any suggestions?