From e6ea25011386833717178579e6f4aa0052c4fb17 Mon Sep 17 00:00:00 2001 From: Collin Kidder Date: Tue, 26 Feb 2019 20:46:28 -0500 Subject: [PATCH] Tweaked the graph a bit in Flowview to make the X axis labels more sensible. --- re/flowviewwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/re/flowviewwindow.cpp b/re/flowviewwindow.cpp index f2e3184..5092bd6 100644 --- a/re/flowviewwindow.cpp +++ b/re/flowviewwindow.cpp @@ -56,7 +56,8 @@ FlowViewWindow::FlowViewWindow(const QVector *frames, QWidget *parent) //ui->graphView->xAxis->setAutoSubTicks(false); //ui->graphView->xAxis->setAutoTicks(false); QCPAxisTicker *xTicker = new QCPAxisTicker(); - xTicker->setTickCount(10); + xTicker->setTickCount(5); + xTicker->setTickStepStrategy(QCPAxisTicker::tssReadability); ui->graphView->xAxis->setTicker(QSharedPointer(xTicker)); //ui->graphView->xAxis->setAutoTickStep(false); //ui->graphView->xAxis->setAutoSubTicks(false);