2

The stem command in MATLAB plots a discrete data sequence.

stem

Is there any equivalent class/method in Qwt to achieve a similar output?

zml
  • 617
  • 7
  • 14

2 Answers2

1

Have a look at QwtPlotHistogram and/or QwtPlotBarChart. You probably have to subclass and reimplement the exact behavior you want to achieve.

c_k
  • 1,746
  • 1
  • 20
  • 35
1

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).

Toby Speight
  • 27,591
  • 48
  • 66
  • 103
Morgar
  • 21
  • 2