From 1162b193bb2859db09ed21e70a0537fefd389b19 Mon Sep 17 00:00:00 2001
From: Tom Rondeau <trondeau@vt.edu>
Date: Wed, 13 Feb 2013 18:29:00 -0500
Subject: ctrlport: turn on autoscaling of figures by default; don't scale to
 max/min.

---
 .../src/python/gnuradio/ctrlport/GrDataPlotter.py   | 21 +++++----------------
 1 file changed, 5 insertions(+), 16 deletions(-)

(limited to 'gnuradio-core/src/python')

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))
 
-- 
cgit v1.2.3