Hi
around a QCPColorMap I have visualized four axes.
The standard tickers refer to the pixel count and this is not useful to me, so I introduced two custom tickers on xAxis2 and yAxis2:
// set a new Ticker for the upper X Axis QSharedPointer<QCPAxisTickerFixed> fixedLatitudeTicker(new QCPAxisTickerFixed); fixedLatitudeTicker->setTickStep(2.5); // tick step shall be 1.0 fixedLatitudeTicker->setScaleStrategy(QCPAxisTickerFixed::ssNone); // and no scaling of the tickstep (like multiples or powers) is allowed ui->plot->xAxis2->setTicker(fixedLatitudeTicker); ui->plot->xAxis2->setTickLabels(true); ui->plot->xAxis2->setTicks(true); // set a new Ticker for the right Y Axis QSharedPointer<QCPAxisTickerFixed> fixedLongitudeTicker(new QCPAxisTickerFixed); fixedLongitudeTicker->setTickStep(2.5); // tick step shall be 1.0 fixedLongitudeTicker->setScaleStrategy(QCPAxisTickerFixed::ssNone); // and no scaling of the tickstep (like multiples or powers) is allowed ui->plot->yAxis2->setTicker(fixedLongitudeTicker); ui->plot->yAxis2->setTickLabels(true); ui->plot->yAxis2->setTicks(true);
This works fpor a static color map.
Afterwards I enabled zooming an pan like this:
ui->plot->setInteraction(QCP::iRangeDrag, true); ui->plot->setInteraction(QCP::iRangeZoom, true);
After zooming/panning the standard tickers reappear and it looks like the introduced custom tickers on xAxis2 and yAxis2 are ignored.
What is the issue here? is it a bug? Should I add again the custom ticker after every zoom/pan action? how?
Any help is appreciated