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

Method dataValueRange

qcustomplot/qcustomplot.cpp:27431–27445  ·  view source on GitHub ↗

inherits documentation from base class */

Source from the content-addressed store, hash-verified

27429
27430/* inherits documentation from base class */
27431QCPRange QCPErrorBars::dataValueRange(int index) const
27432{
27433 if (mDataPlottable)
27434 {
27435 const double value = mDataPlottable->interface1D()->dataMainValue(index);
27436 if (index >= 0 && index < mDataContainer->size() && mErrorType == etValueError)
27437 return QCPRange(value-mDataContainer->at(index).errorMinus, value+mDataContainer->at(index).errorPlus);
27438 else
27439 return QCPRange(value, value);
27440 } else
27441 {
27442 qDebug() << Q_FUNC_INFO << "no data plottable set";
27443 return QCPRange();
27444 }
27445}
27446
27447/* inherits documentation from base class */
27448QPointF 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