From 637e6822edfb021995fc3463084e0082a3ff60a8 Mon Sep 17 00:00:00 2001 From: seleznevae Date: Thu, 18 Jan 2018 22:04:02 +0300 Subject: [PATCH] [F] Fixed x axis with timestamps --- src/core/plotwidget.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/plotwidget.cpp b/src/core/plotwidget.cpp index 6889674..f5451f9 100644 --- a/src/core/plotwidget.cpp +++ b/src/core/plotwidget.cpp @@ -812,8 +812,11 @@ void PlotWidget::createAppearance() if (axisIndex != axisModelVector.size() - 1 && mPlotStyle.mXAxisPref.mIsAxisDrawingAtCenterEnabled == false) { axisRect->axis(QCPAxis::atBottom)->setTickLabels(false); - axisRect->axis(QCPAxis::atBottom)->setTickLabelType(mLayoutModel->timeAxisType()); + //axisRect->axis(QCPAxis::atBottom)->setTickLabelType(mLayoutModel->timeAxisType()); } + + axisRect->axis(QCPAxis::atBottom)->setTickLabelType(mLayoutModel->timeAxisType()); + //ticks // auto axisPen = axisRect->axis(QCPAxis::atLeft)->basePen();