我正在使用qCustomPlot库来绘制图形。我想在对数比例图上显示 subticks 的编号。
customPlot->xAxis->setSubTickCount(8);
customPlot->xAxis->setScaleType(QCPAxis::stLogarithmic);
customPlot->xAxis->setScaleLogBase(10);
使用代码,我只能显示主要刻度的标签,例如。(10、100、1000、10000)。但是,我也想显示 subticks 的编号。例如,在主要刻度 10 和 100 之间,我想显示 20、30、50。我应该怎么做?或者不可能用qCustomPlot显示 subticks 的标签?
提前致谢。