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

Method setRangeLower

src/qt/qcustomplot.cpp:7798–7814  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

7796 \see setRange
7797*/
7798void QCPAxis::setRangeLower(double lower)
7799{
7800 if (mRange.lower == lower)
7801 return;
7802
7803 QCPRange oldRange = mRange;
7804 mRange.lower = lower;
7805 if (mScaleType == stLogarithmic)
7806 {
7807 mRange = mRange.sanitizedForLogScale();
7808 } else
7809 {
7810 mRange = mRange.sanitizedForLinScale();
7811 }
7812 Q_EMIT rangeChanged(mRange);
7813 Q_EMIT rangeChanged(mRange, oldRange);
7814}
7815
7816/*!
7817 Sets the upper bound of the axis range. The lower bound is not changed.

Callers

nothing calls this directly

Calls 2

sanitizedForLogScaleMethod · 0.80
sanitizedForLinScaleMethod · 0.80

Tested by

no test coverage detected