Skip to content

Commit

Permalink
[F] Fixed x axis with timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
seleznevae committed Jan 18, 2018
1 parent 87793b9 commit 637e682
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/plotwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 637e682

Please sign in to comment.