! Sets the data plottable to which the error bars will be applied. The error values specified e.g. via \ref setData will be associated one-to-one by the data point index to the data points of \a plottable. This means that the error bars will adopt the key/value coordinates of the data point with the same index. The passed \a plottable must be a one-dimensional plottable, i.e. it must im
| 27283 | those configured for this \ref QCPErrorBars instance. |
| 27284 | */ |
| 27285 | void QCPErrorBars::setDataPlottable(QCPAbstractPlottable *plottable) |
| 27286 | { |
| 27287 | if (plottable && qobject_cast<QCPErrorBars*>(plottable)) |
| 27288 | { |
| 27289 | mDataPlottable = 0; |
| 27290 | qDebug() << Q_FUNC_INFO << "can't set another QCPErrorBars instance as data plottable"; |
| 27291 | return; |
| 27292 | } |
| 27293 | if (plottable && !plottable->interface1D()) |
| 27294 | { |
| 27295 | mDataPlottable = 0; |
| 27296 | qDebug() << Q_FUNC_INFO << "passed plottable doesn't implement 1d interface, can't associate with QCPErrorBars"; |
| 27297 | return; |
| 27298 | } |
| 27299 | |
| 27300 | mDataPlottable = plottable; |
| 27301 | } |
| 27302 | |
| 27303 | /*! |
| 27304 | Sets in which orientation the error bars shall appear on the data points. If your data needs both |
nothing calls this directly
no outgoing calls
no test coverage detected