MCPcopy Create free account
hub / github.com/collin80/SavvyCAN / setScaleType

Method setScaleType

qcustomplot.cpp:7674–7684  ·  view source on GitHub ↗

! Sets whether the axis uses a linear scale or a logarithmic scale. Note that this method controls the coordinate transformation. For logarithmic scales, you will likely also want to use a logarithmic tick spacing and labeling, which can be achieved by setting the axis ticker to an instance of \ref QCPAxisTickerLog : \snippet documentation/doc-code-snippets/mainwindow.cpp qcpaxisti

Source from the content-addressed store, hash-verified

7672 \ref setNumberPrecision
7673*/
7674void QCPAxis::setScaleType(QCPAxis::ScaleType type)
7675{
7676 if (mScaleType != type)
7677 {
7678 mScaleType = type;
7679 if (mScaleType == stLogarithmic)
7680 setRange(mRange.sanitizedForLogScale());
7681 mCachedMarginValid = false;
7682 emit scaleTypeChanged(mScaleType);
7683 }
7684}
7685
7686/*!
7687 Sets the range of the axis.

Callers 3

setupFullAxesBoxMethod · 0.80
setDataScaleTypeMethod · 0.80
updateDetailsWindowMethod · 0.80

Calls 1

sanitizedForLogScaleMethod · 0.80

Tested by

no test coverage detected