MCPcopy Create free account
hub / github.com/LUX-Core/lux / setRangeUpper

Method setRangeUpper

src/qt/qcustomplot.cpp:7820–7836  ·  view source on GitHub ↗

! Sets the upper bound of the axis range. The lower bound is not changed. \see setRange */

Source from the content-addressed store, hash-verified

7818 \see setRange
7819*/
7820void QCPAxis::setRangeUpper(double upper)
7821{
7822 if (mRange.upper == upper)
7823 return;
7824
7825 QCPRange oldRange = mRange;
7826 mRange.upper = upper;
7827 if (mScaleType == stLogarithmic)
7828 {
7829 mRange = mRange.sanitizedForLogScale();
7830 } else
7831 {
7832 mRange = mRange.sanitizedForLinScale();
7833 }
7834 Q_EMIT rangeChanged(mRange);
7835 Q_EMIT rangeChanged(mRange, oldRange);
7836}
7837
7838/*!
7839 Sets whether the axis range (direction) is displayed reversed. Normally, the values on horizontal

Callers

nothing calls this directly

Calls 2

sanitizedForLogScaleMethod · 0.80
sanitizedForLinScaleMethod · 0.80

Tested by

no test coverage detected