summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/python
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2013-02-13 18:29:00 -0500
committerTom Rondeau <trondeau@vt.edu>2013-02-13 18:29:00 -0500
commit1162b193bb2859db09ed21e70a0537fefd389b19 (patch)
tree0a8f5b1971e60a7fe9e66176712352c529f701e6 /gnuradio-core/src/python
parent3e56a024b0b75f880e5e0d4bcd45939b4e909db3 (diff)
ctrlport: turn on autoscaling of figures by default; don't scale to max/min.
Diffstat (limited to 'gnuradio-core/src/python')
-rw-r--r--gnuradio-core/src/python/gnuradio/ctrlport/GrDataPlotter.py21
1 files changed, 5 insertions, 16 deletions
diff --git a/gnuradio-core/src/python/gnuradio/ctrlport/GrDataPlotter.py b/gnuradio-core/src/python/gnuradio/ctrlport/GrDataPlotter.py
index f33160aca2..f93944c397 100644
--- a/gnuradio-core/src/python/gnuradio/ctrlport/GrDataPlotter.py
+++ b/gnuradio-core/src/python/gnuradio/ctrlport/GrDataPlotter.py
@@ -46,9 +46,7 @@ class GrDataPlotterC(gr.top_block):
self.thr = gr.throttle(gr.sizeof_gr_complex, rate)
self.snk = qtgui.time_sink_c(self._npts, samp_rate,
self._name, 1)
-
- if(pmin is not None or not pmax is None):
- self.snk.set_y_axis(pmin, pmax)
+ self.snk.enable_autoscale(True)
self.connect(self.src, self.thr, (self.snk, 0))
@@ -121,9 +119,7 @@ class GrDataPlotterF(gr.top_block):
self.thr = gr.throttle(gr.sizeof_float, rate)
self.snk = qtgui.time_sink_f(self._npts, samp_rate,
self._name, 1)
-
- if(pmin is not None or not pmax is None):
- self.snk.set_y_axis(pmin, pmax)
+ self.snk.enable_autoscale(True)
self.connect(self.src, self.thr, (self.snk, 0))
@@ -191,10 +187,7 @@ class GrDataPlotterConst(gr.top_block):
self.thr = gr.throttle(gr.sizeof_gr_complex, rate)
self.snk = qtgui.const_sink_c(self._npts,
self._name, 1)
-
- if(pmin is not None or not pmax is None):
- self.snk.set_x_axis(pmin, pmax)
- self.snk.set_y_axis(pmin, pmax)
+ self.snk.enable_autoscale(True)
self.connect(self.src, self.thr, (self.snk, 0))
@@ -268,9 +261,7 @@ class GrDataPlotterPsdC(gr.top_block):
self.snk = qtgui.freq_sink_c(self._fftsize, self._wintype,
self._fc, self._samp_rate,
self._name, 1)
-
- if(pmin is not None or not pmax is None):
- self.snk.set_y_axis(pmin, pmax)
+ self.snk.enable_autoscale(True)
self.connect(self.src, self.thr, (self.snk, 0))
@@ -343,9 +334,7 @@ class GrDataPlotterPsdF(gr.top_block):
self.snk = qtgui.freq_sink_f(self._fftsize, self._wintype,
self._fc, self._samp_rate,
self._name, 1)
-
- if(pmin is not None or not pmax is None):
- self.snk.set_y_axis(pmin, pmax)
+ self.snk.enable_autoscale(True)
self.connect(self.src, self.thr, (self.snk, 0))