QCustomPlot Discussion and Comments

Scaling tick steps labels to plottablesReturn to overview

Hello,

Currently i have a graph that at all times is plotting around 1 million plottables (a music file) and i have that set up with a QCPAxisTickerTime to represent the track duration in m:s:ms but the scaling of the ticker labels are way off the mark, ie, i want to represent all my graph data in a range so that it starts at 00:00:00 till xx:xx:xx (the track's length) but instead im getting a range that goes like 00:00:00 ~ 7200:00:00 or so which is obviously wrong since the track itself is only 2 minutes long. Is there a way to modify the scaling of the TickerTime subclass or how would one go about it?

You need to set a format

timeTicker->setTimeFormat("%m:%s:%z");

http://www.qcustomplot.com/documentation/classQCPAxisTickerTime.html#a2f30b6e5125bce4256be9ce3177088ea