QCustomPlot Discussion and Comments

Is there any way to retrieve the current tick step?Return to overview

I would like to draw a horizontal line on my plot that represents the time between ticks. Is there an easy way to do this? If not, is there some way I can get the current tick step?

Thanks in advance.

For drawing a line you can easily use QCPItemLine. but i don't understand how the line can represents the time between ticks!! can you make an example?

Thanks for your reply. I think the question is independent of drawing the line. What I really need is to retrieve the tick step, that was automatically generated, from within my code.

try
customPlot->xAxis->tickStep()

DerManu,

Thanks. That was exactly what i needed.

I really appreciate your work. If I can support you in some way, please let me know.