Dear DerManu,
could you please append a custom Axis Lable Type. This may be very helpful in situations where the user will not handle the tick labels manually and think about tick steps, zoom level and so on, but need a custom formatting of the double values. I my case I need a format with thousands separator and with currency.
This may also helpful in situations like http://www.qcustomplot.com/index.php/support/forum/161 where the timezone is different.
e.g. add in the QCPAxis::setupTickVectors() some lines like this to emit a signal containing the reference of the labels QString and the requested double value.
if (mTickLabelType == ltCustom) { for (int i=mLowestVisibleTick; i<=mHighestVisibleTick; ++i) emit CustomTickLabel(&mTickVectorLabels[i], mTickVector.at(i)); }
The user must only implement its own slot-Function to convert the double Value to a String and QCustomPlot handle which values are needed.
What do you think about this idea?