QCustomPlot Discussion and Comments

how to make interval on axisReturn to overview

I ve been looking up document but I cant really find how can I do it, I want to divide interval by 50 50 or 20 20 but it is increasing 1 by 1

this is what I want to do exactly


Thank you

You have two possibilities: Keep using the automatic tick generation and just change the number of ticks that the algorithm aims for: QCPAxis::setAutoTickCount

Alternatively you can disable the automatic tick step calculation (QCPAxis::setAutoTickStep) and set an own one with QCPAxis::setTickStep.