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

Method getQuartileBox

qcustomplot/qcustomplot.cpp:24956–24962  ·  view source on GitHub ↗

! \internal Returns the box in plot coordinates (keys in x, values in y of the returned rect) that covers the value range from the lower to the upper quartile, of the data given by \a it. \see drawStatisticalBox, getWhiskerBackboneLines, getWhiskerBarLines */

Source from the content-addressed store, hash-verified

24954 \see drawStatisticalBox, getWhiskerBackboneLines, getWhiskerBarLines
24955*/
24956QRectF QCPStatisticalBox::getQuartileBox(QCPStatisticalBoxDataContainer::const_iterator it) const
24957{
24958 QRectF result;
24959 result.setTopLeft(coordsToPixels(it->key-mWidth*0.5, it->upperQuartile));
24960 result.setBottomRight(coordsToPixels(it->key+mWidth*0.5, it->lowerQuartile));
24961 return result;
24962}
24963
24964/*! \internal
24965

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected