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
);
}
}
//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);
}
}
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?
Bookmarks