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

Method setTicker

qcustomplot/qcustomplot.cpp:7876–7883  ·  view source on GitHub ↗

! The axis ticker is responsible for generating the tick positions and tick labels. See the documentation of QCPAxisTicker for details on how to work with axis tickers. You can change the tick positioning/labeling behaviour of this axis by setting a different QCPAxisTicker subclass using this method. If you only wish to modify the currently installed axis ticker, access it via \ref ti

Source from the content-addressed store, hash-verified

7874 \see ticker
7875*/
7876void QCPAxis::setTicker(QSharedPointer<QCPAxisTicker> ticker)
7877{
7878 if (ticker)
7879 mTicker = ticker;
7880 else
7881 qDebug() << Q_FUNC_INFO << "can not set 0 as axis ticker";
7882 // no need to invalidate margin cache here because produced tick labels are checked for changes in setupTickVector
7883}
7884
7885/*!
7886 Sets whether tick marks are displayed.

Callers 1

setTypeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected