MCPcopy Create free account
hub / github.com/Audio4Linux/JDSP4Linux / setRangeUpper

Method setRangeUpper

3rdparty/qcustomplot/qcustomplot.cpp:8526–8542  ·  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

8524 \see setRange
8525*/
8526void QCPAxis::setRangeUpper(double upper)
8527{
8528 if (mRange.upper == upper)
8529 return;
8530
8531 QCPRange oldRange = mRange;
8532 mRange.upper = upper;
8533 if (mScaleType == stLogarithmic)
8534 {
8535 mRange = mRange.sanitizedForLogScale();
8536 } else
8537 {
8538 mRange = mRange.sanitizedForLinScale();
8539 }
8540 emit rangeChanged(mRange);
8541 emit rangeChanged(mRange, oldRange);
8542}
8543
8544/*!
8545 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