! \internal Takes the entire currently visible axis range and returns a sensible tick step in order to provide readable tick labels as well as a reasonable number of tick counts (see \ref setTickCount, \ref setTickStepStrategy). If a QCPAxisTicker subclass only wants a different tick step behaviour than the default implementation, it should reimplement this method. See \ref cleanMa
| 6219 | function. |
| 6220 | */ |
| 6221 | double QCPAxisTicker::getTickStep(const QCPRange &range) |
| 6222 | { |
| 6223 | double exactStep = range.size()/double(mTickCount+1e-10); // mTickCount ticks on average, the small addition is to prevent jitter on exact integers |
| 6224 | return cleanMantissa(exactStep); |
| 6225 | } |
| 6226 | |
| 6227 | /*! \internal |
| 6228 |