Hi everyone,
I just have to plot a curve which can be discontinuous over some intervals, but I can't find the way to do this.
My samples are set with the setRawSamples(const double *xData, const double *yData, int size) function of QwtPlotCurve.
To let a gap in Qwt curves I thought about 3 solutions:
1) Paint the empty intervals with segments colored in white/transparent (declare another data array specifying the color of each sample - but I believe multiple colors in one curve are not implemented in Qwt yet)
2) As all my curves are positive, I can set for example a negative value to yData[i] to tell the draw function that the sample should'nt be drawed and a gap has to be left (so I probably have to overload a Qwt function, and recompile and reinstall all the framework...)
3) Set a value that is far out of the Y axis range, so I get a gap, but the invisible samples are joined to the visible ones and I get two vertical segments which are undesirable...
Which solution is best to explore ? Or is there an easier solution to achieve this ?
Thanks a lot
Romain
Bookmarks