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

Method setTickStep

qcustomplot/qcustomplot.cpp:6444–6450  ·  view source on GitHub ↗

! Sets the fixed tick interval to \a step. The axis ticker will only use this tick step when generating axis ticks. This might cause a very high tick density and overlapping labels if the axis range is zoomed out. Using \ref setScaleStrategy it is possible to relax the fixed step and also allow multiples or powers of \a step. This will enable the ticker to reduce the number of ticks t

Source from the content-addressed store, hash-verified

6442 setTickCount).
6443*/
6444void QCPAxisTickerFixed::setTickStep(double step)
6445{
6446 if (step > 0)
6447 mTickStep = step;
6448 else
6449 qDebug() << Q_FUNC_INFO << "tick step must be greater than zero:" << step;
6450}
6451
6452/*!
6453 Sets whether the specified tick step (\ref setTickStep) is absolutely fixed or whether

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected