diff options
Diffstat (limited to 'gr-qtgui/lib/TimeDomainDisplayPlot.cc')
-rw-r--r-- | gr-qtgui/lib/TimeDomainDisplayPlot.cc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gr-qtgui/lib/TimeDomainDisplayPlot.cc b/gr-qtgui/lib/TimeDomainDisplayPlot.cc index f3c3b4deb3..1f63b43abd 100644 --- a/gr-qtgui/lib/TimeDomainDisplayPlot.cc +++ b/gr-qtgui/lib/TimeDomainDisplayPlot.cc @@ -249,4 +249,22 @@ TimeDomainDisplayPlot::setSampleRate(double sr, double units, } } +void +TimeDomainDisplayPlot::stemPlot(bool trig) +{ + if(trig) { + for(int i = 0; i < _nplots; i++) { + _plot_curve[i]->setStyle(QwtPlotCurve::Sticks); + setLineMarker(i, QwtSymbol::Ellipse); + } + } + else { + for(int i = 0; i < _nplots; i++) { + _plot_curve[i]->setStyle(QwtPlotCurve::Lines); + setLineMarker(i, QwtSymbol::NoSymbol); + } + } + replot(); +} + #endif /* TIME_DOMAIN_DISPLAY_PLOT_C */ |