Help with QwtPlot and QwtPlotCurve. Draw Lines.
Hello,
I have a application with QwtPlot with two curves and it works fine.
Now I am interesting in draw vertical lines between two curves, but I do not know how to do it. It likes fill the zone between two curves.
Is it possible to do it???
Best regards.
Re: Help with QwtPlot and QwtPlotCurve. Draw Lines.
Well. after surfing in the net, I have found
Code:
setRawData(d_x, d_limit4, PLOT_SIZE);
setBrush
(QBrush(Qt
::green, Qt
::Dense7Pattern));
setBaseline(5000.0)
The efect of this code in my plot is to fill area between baseline and curve, but I do not find any solution to fill area between two curves.
Re: Help with QwtPlot and QwtPlotCurve. Draw Lines.
A curve is intended for displaying points not for intervals.
You find an implementation of an item displaying intervals in the development branch ( trunk ) of Qwt: http://qwt.svn.sourceforge.net/viewv...31&view=markup
The errorbars example shows how to use it.
Uwe