We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8f5c328 + 30a1f74 commit b5d2b25Copy full SHA for b5d2b25
src/mainwindow.cpp
@@ -504,6 +504,17 @@ void MainWindow::on_comboBoxSendReturnPressedSlot()
504
// Auto-scroll X and rescale Y
505
void MainWindow::on_chartBeforeReplotSlot()
506
{
507
+ static bool isChartEmpty = false;
508
+ if (ui->widgetChart->graphCount() > 0 && isChartEmpty == true)
509
+ {
510
+ isChartEmpty = false;
511
+ ui->widgetChart->rescaleAxes(); // center plot if new graphs added to empty chart
512
+ }
513
+ else if (ui->widgetChart->graphCount() == 0)
514
515
+ isChartEmpty = true;
516
517
+
518
if (ui->checkBoxAutoTrack->isChecked() && ui->widgetChart->graphCount() > 0)
519
520
if (parser.getListTimeStamp().count() > 0)
0 commit comments