QCustomPlot Discussion and Comments

interpolating values with itemTracerReturn to overview
January 22, 2016, 12:16
by jipe3001

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 ?

January 27, 2016, 00:53
by xcb44
January 27, 2016, 09:40
by DerManu

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() .

December 23, 2022, 05:56
by srinath

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

AltStyle によって変換されたページ (->オリジナル) /