! 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
| 7672 | \ref setNumberPrecision |
| 7673 | */ |
| 7674 | void 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. |
no test coverage detected