mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-04-26 06:28:24 -05:00
plot: rescale to all drawn axis
I did miss this call on the customplot widget
This commit is contained in:
+2
-5
@@ -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("|"));
|
||||
|
||||
Reference in New Issue
Block a user