QCustomPlot Discussion and Comments

How to show the numbering for subticks in log scaled plot?Return to overview

I am using qCustomPlot library to plot graph. I would like to show the subticks' numbering on the log scaled graph.

customPlot->xAxis->setSubTickCount(8);
customPlot->xAxis->setScaleType(QCPAxis::stLogarithmic);          
customPlot->xAxis->setScaleLogBase(10);

With the code, I just able to show labels for major ticks, for eg. (10, 100, 1000, 10000). However, I would like to show the numbering for subticks as well. For example, between the major ticks 10 and 100, I wanna show 20, 30, 50. How should I do that? Or it's not possible to show subticks' labels with qCustomPlot?

Thanks in advance.

Currently subticks can't have labels. But I agree that especially for log scale it would be nice to have them labeled. I'll write this down for a future release.

I have the same problem, is there any update?.
Thanks.

there is a way to fix the problem, change the base of the logarithm to a very small base and then ticks located:
Example:

    

    QVector<double> piTicks;
    piTicks << 1 << 10 << 15 << 20<<30 << 50 <<70<< 80 << 99;
    customPlot->xAxis->setRange(0.001,1000);
    customPlot->yAxis->setRange(1,100);
    customPlot->xAxis->setScaleType(QCPAxis::stLogarithmic);
    customPlot->yAxis->setScaleType(QCPAxis::stLogarithmic);
    customPlot->yAxis->setScaleLogBase(1.05);//BaseLog HERE
    customPlot->yAxis->setAutoTicks(false);
    customPlot->yAxis->setTickVector(piTicks);

thanks and sorry for my English

Any news on the subticks label for log scale? It could really be a neat feature. Even if it has to be added "manually" for now.