QCustomPlot Discussion and Comments

interpolating values with itemTracerReturn to overview

I am using an itemTracer to display values on the graph and tried to select the interpolating option
as follows:

tracer->setGraphKey(x);
tracer->setInterpolating(true);
tracer->setStyle(QCPItemTracer::tsCrosshair);
tracer->setPen(QPen(x_axis_color));

My concern is about the value interpolated between two graph data.

Is there a way to retrieve this value ?

try
tracer->position->value()

Just a little addition: I suggest reading the Note in the last paragraph of the QCPItemTracer description:
http://www.qcustomplot.com/documentation/classQCPItemTracer.html#details

So if you've changed the tracer's key position (via setGraphKey) and haven't replotted yet, be sure to call
tracer->updatePosition() before querying the value with tracer->position->value().

Hi, Is there any library associated with qt specifically used for linear interpolation using Qcustomplot ?