MCPcopy Create free account
hub / github.com/CieNTi/serial_port_plotter / sanitizedForLinScale

Method sanitizedForLinScale

qcustomplot/qcustomplot.cpp:2086–2091  ·  view source on GitHub ↗

! Returns a sanitized version of the range. Sanitized means for linear scales, that \a lower will always be numerically smaller (or equal) to \a upper. */

Source from the content-addressed store, hash-verified

2084 \a lower will always be numerically smaller (or equal) to \a upper.
2085*/
2086QCPRange QCPRange::sanitizedForLinScale() const
2087{
2088 QCPRange sanitizedRange(lower, upper);
2089 sanitizedRange.normalize();
2090 return sanitizedRange;
2091}
2092
2093/*!
2094 Checks, whether the specified range is within valid bounds, which are defined

Callers 5

setRangeMethod · 0.80
setRangeLowerMethod · 0.80
setRangeUpperMethod · 0.80
scaleRangeMethod · 0.80
setDataRangeMethod · 0.80

Calls 1

normalizeMethod · 0.80

Tested by

no test coverage detected