QCustomPlot Discussion and Comments

Custom axis legendReturn to overview

I have a program that displays ecg data with a sample rate of 130 per second. I am trying to have an x-axis tic every 65 samples and have the corresponding legend increment by 0.5 (to represent an increase in time by 0.5 sec). Any thoughts on how to solve this problem
Thanks in advance

You need to set a custom ticker:

MyTicker *t = new MyTicker();

The MyTicker class is a subclass of QCPAxisTicker, in which you reimplement getTickLabel() for example.