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

Method getWhiskerBarLines

qcustomplot/qcustomplot.cpp:24987–24993  ·  view source on GitHub ↗

! \internal Returns the whisker bars (keys in x, values in y of the returned lines) that are placed at the end of the whisker backbones, at the minimum and maximum of the data given by \a it. \see drawStatisticalBox, getQuartileBox, getWhiskerBackboneLines */

Source from the content-addressed store, hash-verified

24985 \see drawStatisticalBox, getQuartileBox, getWhiskerBackboneLines
24986*/
24987QVector<QLineF> QCPStatisticalBox::getWhiskerBarLines(QCPStatisticalBoxDataContainer::const_iterator it) const
24988{
24989 QVector<QLineF> result(2);
24990 result[0].setPoints(coordsToPixels(it->key-mWhiskerWidth*0.5, it->minimum), coordsToPixels(it->key+mWhiskerWidth*0.5, it->minimum)); // min bar
24991 result[1].setPoints(coordsToPixels(it->key-mWhiskerWidth*0.5, it->maximum), coordsToPixels(it->key+mWhiskerWidth*0.5, it->maximum)); // max bar
24992 return result;
24993}
24994/* end of 'src/plottables/plottable-statisticalbox.cpp' */
24995
24996

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected