MCPcopy Create free account
hub / github.com/ZhuYanzhen1/miniFOC / dataValueRange

Method dataValueRange

tools/qcustomplot.cpp:28188–28202  ·  view source on GitHub ↗

inherits documentation from base class */

Source from the content-addressed store, hash-verified

28186
28187/* inherits documentation from base class */
28188QCPRange QCPErrorBars::dataValueRange(int index) const
28189{
28190 if (mDataPlottable)
28191 {
28192 const double value = mDataPlottable->interface1D()->dataMainValue(index);
28193 if (index >= 0 && index < mDataContainer->size() && mErrorType == etValueError)
28194 return {value-mDataContainer->at(index).errorMinus, value+mDataContainer->at(index).errorPlus};
28195 else
28196 return {value, value};
28197 } else
28198 {
28199 qDebug() << Q_FUNC_INFO << "no data plottable set";
28200 return {};
28201 }
28202}
28203
28204/* inherits documentation from base class */
28205QPointF QCPErrorBars::dataPixelPosition(int index) const

Callers

nothing calls this directly

Calls 3

atMethod · 0.80
dataMainValueMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected