summaryrefslogtreecommitdiff
path: root/gr-qtgui/lib/TimeDomainDisplayPlot.cc
diff options
context:
space:
mode:
authorTom Rondeau2011-04-24 01:30:08 -0400
committerTom Rondeau2011-04-24 01:30:08 -0400
commit43a3a7296412dc52216e7f63856a86945f4ba438 (patch)
tree43fd3ebcb6b3af7c10a727602afb6ae3f14e09c6 /gr-qtgui/lib/TimeDomainDisplayPlot.cc
parente251c885f19281ef918987e09c2aac1af6a952c2 (diff)
downloadgnuradio-43a3a7296412dc52216e7f63856a86945f4ba438.tar.gz
gnuradio-43a3a7296412dc52216e7f63856a86945f4ba438.tar.bz2
gnuradio-43a3a7296412dc52216e7f63856a86945f4ba438.zip
gr-qtgui: clean up
Diffstat (limited to 'gr-qtgui/lib/TimeDomainDisplayPlot.cc')
-rw-r--r--gr-qtgui/lib/TimeDomainDisplayPlot.cc21
1 files changed, 10 insertions, 11 deletions
diff --git a/gr-qtgui/lib/TimeDomainDisplayPlot.cc b/gr-qtgui/lib/TimeDomainDisplayPlot.cc
index 28cca3aaa..ee13a7dce 100644
--- a/gr-qtgui/lib/TimeDomainDisplayPlot.cc
+++ b/gr-qtgui/lib/TimeDomainDisplayPlot.cc
@@ -117,14 +117,13 @@ TimeDomainDisplayPlot::TimeDomainDisplayPlot(int nplots, QWidget* parent)
canvas()->setPalette(palette);
setAxisScaleEngine(QwtPlot::xBottom, new QwtLinearScaleEngine);
- set_xaxis(0, _numPoints);
+ setXaxis(0, _numPoints);
setAxisTitle(QwtPlot::xBottom, "Time (sec)");
setAxisScaleEngine(QwtPlot::yLeft, new QwtLinearScaleEngine);
- set_yaxis(-2.0, 2.0);
- setAxisTitle(QwtPlot::yLeft, "Normalized Voltage");
-
- //QColor clr(Qt::blue);
+ setYaxis(-2.0, 2.0);
+ setAxisTitle(QwtPlot::yLeft, "Amplitude");
+
QList<QColor> colors;
colors << QColor(Qt::blue) << QColor(Qt::red) << QColor(Qt::green)
<< QColor(Qt::black) << QColor(Qt::cyan) << QColor(Qt::magenta)
@@ -149,9 +148,9 @@ TimeDomainDisplayPlot::TimeDomainDisplayPlot(int nplots, QWidget* parent)
_resetXAxisPoints();
_zoomer->setMousePattern(QwtEventPattern::MouseSelect2,
- Qt::RightButton, Qt::ControlModifier);
+ Qt::RightButton, Qt::ControlModifier);
_zoomer->setMousePattern(QwtEventPattern::MouseSelect3,
- Qt::RightButton);
+ Qt::RightButton);
_panner = new QwtPlotPanner(canvas());
_panner->setAxisEnabled(QwtPlot::yRight, false);
@@ -195,21 +194,21 @@ TimeDomainDisplayPlot::~TimeDomainDisplayPlot()
}
void
-TimeDomainDisplayPlot::set_yaxis(double min, double max)
+TimeDomainDisplayPlot::setYaxis(double min, double max)
{
setAxisScale(QwtPlot::yLeft, min, max);
_zoomer->setZoomBase();
}
void
-TimeDomainDisplayPlot::set_xaxis(double min, double max)
+TimeDomainDisplayPlot::setXaxis(double min, double max)
{
setAxisScale(QwtPlot::xBottom, min, max);
_zoomer->setZoomBase();
}
void
-TimeDomainDisplayPlot::set_title(int which, QString title)
+TimeDomainDisplayPlot::setTitle(int which, QString title)
{
_plot_curve[which]->setTitle(title);
}
@@ -242,7 +241,7 @@ void TimeDomainDisplayPlot::PlotNewData(const std::vector<double*> dataPoints,
_plot_curve[i]->setRawData(_xAxisPoints, _dataPoints[i], _numPoints);
}
- set_xaxis(0, numDataPoints);
+ setXaxis(0, numDataPoints);
_resetXAxisPoints();
}