MCPcopy Create free account
hub / github.com/cutechess/cutechess / getTickStep

Method getTickStep

projects/gui/3rdparty/qcustomplot/qcustomplot.cpp:6221–6225  ·  view source on GitHub ↗

! \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

Source from the content-addressed store, hash-verified

6219 function.
6220*/
6221double 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

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected