summaryrefslogtreecommitdiff
path: root/gr-qtgui/lib/TimeDomainDisplayPlot.cc
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2013-01-19 17:44:54 -0500
committerTom Rondeau <trondeau@vt.edu>2013-01-20 12:13:45 -0500
commit202761f1a5808f207c44b328f7844ac788a06c29 (patch)
tree278cccbb8f425ea73b4d3827f57a2822ce033bdb /gr-qtgui/lib/TimeDomainDisplayPlot.cc
parent26228d88fc785a7f24639e6216ac01bc1ba48c5c (diff)
qtgui: added ability to toggle time plots into stem plots.
Diffstat (limited to 'gr-qtgui/lib/TimeDomainDisplayPlot.cc')
-rw-r--r--gr-qtgui/lib/TimeDomainDisplayPlot.cc18
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 */