[Qwt-Plot]How can I set the samples to fit data structures ?
-
If I correctly understand the documentation of set(Raw)Samples, the arguments given suggest that they must fit a declaration of the kind :
@double X[SIZE],Y[SIZE];@
I mean that consecutive X are consecutive in memory.
Is there a way to setSamples according to the following declaration:
@typedef struct{
double X;
double Y;}
DATA;DATA curve[SIZE];@
I mean to define some series when consecutive X (and Y) are offset by sizeof(DATA); ? -
What you are referring to is not the general case of set(Raw)Samples.
Use "QPlotCurve::setSamples":http://qwt.sourceforge.net/class_qwt_plot_curve.html#a67b24f3663484ff5e973a288c6071b2a
AFAIK this refers to the more common usage within QWT . -
Ответ прост-размер графика
-
[quote author="koahnig" date="1379584558"]What you are referring to is not the general case of set(Raw)Samples.
Use "QPlotCurve::setSamples":http://qwt.sourceforge.net/class_qwt_plot_curve.html#a67b24f3663484ff5e973a288c6071b2a
AFAIK this refers to the more common usage within QWT . [/quote]
If I understand correctly, you advise to use QVectors.
Hmm... I fear this to be far too "heavy" for what I want.
Thanks anyway for helping.