MCPcopy Create free account
hub / github.com/CieNTi/serial_port_plotter / setLogBase

Method setLogBase

qcustomplot/qcustomplot.cpp:7042–7050  ·  view source on GitHub ↗

! Sets the logarithm base used for tick coordinate generation. The ticks will be placed at integer powers of \a base. */

Source from the content-addressed store, hash-verified

7040 powers of \a base.
7041*/
7042void QCPAxisTickerLog::setLogBase(double base)
7043{
7044 if (base > 0)
7045 {
7046 mLogBase = base;
7047 mLogBaseLnInv = 1.0/qLn(mLogBase);
7048 } else
7049 qDebug() << Q_FUNC_INFO << "log base has to be greater than zero:" << base;
7050}
7051
7052/*!
7053 Sets the number of sub ticks in a tick interval. Within each interval, the sub ticks are spaced

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected