plot: rescale to all drawn axis

I did miss this call on the customplot widget
This commit is contained in:
Peinthor Rene
2014-05-16 18:02:32 +02:00
parent 39ab238ddd
commit edab586c08
+2 -5
View File
@@ -1531,14 +1531,11 @@ void MainWindow::updatePlot(SqliteTableModel *model, bool update)
// gather Y label column names
yAxisLabels << model->headerData(y, Qt::Horizontal).toString();
// scaling is anything than optimal right now, the last selected
// Y axis will always "win" the scaling, either let the use choose
// or try to scale the plot by the graph with the biggest values
graph->rescaleAxes();
}
}
ui->plotWidget->rescaleAxes(true);
// set axis labels
ui->plotWidget->xAxis->setLabel(model->headerData(x, Qt::Horizontal).toString());
ui->plotWidget->yAxis->setLabel(yAxisLabels.join("|"));