The stem command in MATLAB plots a discrete data sequence.
Is there any equivalent class/method in Qwt to achieve a similar output?
The stem command in MATLAB plots a discrete data sequence.
Is there any equivalent class/method in Qwt to achieve a similar output?
Have a look at QwtPlotHistogram and/or QwtPlotBarChart. You probably have to subclass and reimplement the exact behavior you want to achieve.
It's too late for my answer. But for others who want to do the same, you can use a QwtPlotCurve and call setStyle(QwtPlotCurve::Steps)
or setStyle(QwtPlotCurve::Sticks)
.