View Full Version : Help with QwtPlot and QwtPlotCurve. Draw Lines.
webquinty
6th July 2009, 10:03
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.
webquinty
6th July 2009, 16:13
Well. after surfing in the net, I have found
setRawData(d_x, d_limit4, PLOT_SIZE);
setBrush(QBrush(Qt::green, Qt::Dense7Pattern));
setCurveType(QwtPlotCurve::Yfx);
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.
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/viewvc/qwt/trunk/qwt/src/qwt_plot_intervalcurve.h?revision=231&view=markup
The errorbars example shows how to use it.
Uwe
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.