summaryrefslogtreecommitdiff
path: root/gr-qtgui/apps/plot_constellation_form.py
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2013-02-17 17:04:47 -0500
committerTom Rondeau <trondeau@vt.edu>2013-02-17 18:33:51 -0500
commit60f6b22a5f11d5c54771dc5a9b4567ba35852088 (patch)
tree48a0ceec6c55e780689fcf599f7ca7563a0fce2e /gr-qtgui/apps/plot_constellation_form.py
parent725b08915ce8854a824845d5e17fe6ef40e9c924 (diff)
qtgui: tweaking plotting apps for better handling.
Diffstat (limited to 'gr-qtgui/apps/plot_constellation_form.py')
-rw-r--r--gr-qtgui/apps/plot_constellation_form.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/gr-qtgui/apps/plot_constellation_form.py b/gr-qtgui/apps/plot_constellation_form.py
index 6f67000ea2..9a4aa3d463 100644
--- a/gr-qtgui/apps/plot_constellation_form.py
+++ b/gr-qtgui/apps/plot_constellation_form.py
@@ -44,13 +44,23 @@ class plot_constellation_form(plot_form):
self.right_col_layout.addLayout(self.right_col_form)
self.layout.addLayout(self.right_col_layout, 1,4,1,1)
+ # Constellation resizing scales x and y together.
+ # Set the bar to go from 0.001 to max
+ self.ybar.setMinimum(1)
+ self.ybar.setMaximum(1000*self.top_block._y_max)
+ self.ybar.setSingleStep(1000*(max(self.top_block._y_range/10, 0.010)))
+ self.ybar.setPageStep(1000*(max(self.top_block._y_range/2, 0.010)))
+
self.auto_scale = QtGui.QCheckBox("Auto Scale", self)
if(self.top_block._auto_scale):
self.auto_scale.setChecked(self.top_block._auto_scale)
+ self.set_auto_scale(self.top_block._auto_scale)
self.connect(self.auto_scale, QtCore.SIGNAL("stateChanged(int)"),
self.set_auto_scale)
self.right_col_layout.addWidget(self.auto_scale)
+ self.ybar.setValue(1000*self.top_block._y_value)
+
self.add_line_control(self.right_col_layout)
def set_auto_scale(self, state):