commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 15/23: qtgui: dynamically adjust min/max am


From: git
Subject: [Commit-gnuradio] [gnuradio] 15/23: qtgui: dynamically adjust min/max amplitude for qtgui freq and waterfall plots.
Date: Thu, 26 Jun 2014 19:54:44 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

trondeau pushed a commit to branch master
in repository gnuradio.

commit c7b71425d630f1d327c0f3db26f3d61d82b536c0
Author: Tom Rondeau <address@hidden>
Date:   Thu Jun 26 14:30:12 2014 -0400

    qtgui: dynamically adjust min/max amplitude for qtgui freq and waterfall 
plots.
    
    This is best achieved by using QTGUI Range variables to provide sliders for 
the upper and lower bounds.
---
 gr-qtgui/grc/qtgui_freq_sink_x.xml      |  1 +
 gr-qtgui/grc/qtgui_waterfall_sink_x.xml | 20 ++++++++++++++++++++
 2 files changed, 21 insertions(+)

diff --git a/gr-qtgui/grc/qtgui_freq_sink_x.xml 
b/gr-qtgui/grc/qtgui_freq_sink_x.xml
index 29c0bc0..68b4712 100644
--- a/gr-qtgui/grc/qtgui_freq_sink_x.xml
+++ b/gr-qtgui/grc/qtgui_freq_sink_x.xml
@@ -48,6 +48,7 @@ $(gui_hint()($win))</make>
   <callback>set_update_time($update_time)</callback>
   <callback>set_title($which, $title)</callback>
   <callback>set_color($which, $color)</callback>
+  <callback>set_y_axis($ymin, $ymax)</callback>
 
   <param_tab_order>
     <tab>General</tab>
diff --git a/gr-qtgui/grc/qtgui_waterfall_sink_x.xml 
b/gr-qtgui/grc/qtgui_waterfall_sink_x.xml
index b194d37..279cdc7 100644
--- a/gr-qtgui/grc/qtgui_waterfall_sink_x.xml
+++ b/gr-qtgui/grc/qtgui_waterfall_sink_x.xml
@@ -36,12 +36,15 @@ for i in xrange($nconnections):
     self.$(id).set_color_map(i, colors[i])
     self.$(id).set_line_alpha(i, alphas[i])
 
+self.$(id).set_intensity_range($int_min, $int_max)
+
 self._$(id)_win = sip.wrapinstance(self.$(id).pyqwidget(), Qt.QWidget)
 $(gui_hint()($win))</make>
   <callback>set_frequency_range($fc, $bw)</callback>
   <callback>set_update_time($update_time)</callback>
   <callback>set_title($which, $title)</callback>
   <callback>set_color($which, $color)</callback>
+  <callback>set_intensity_range($int_min, $int_max)</callback>
 
   <param_tab_order>
     <tab>General</tab>
@@ -115,6 +118,23 @@ $(gui_hint()($win))</make>
                <value>samp_rate</value>
                <type>real</type>
        </param>
+
+       <param>
+               <name>Intensity Min</name>
+               <key>int_min</key>
+                <value>-140</value>
+               <type>float</type>
+                <hide>part</hide>
+       </param>
+
+       <param>
+               <name>Intensity Max</name>
+               <key>int_max</key>
+                <value>10</value>
+               <type>float</type>
+                <hide>part</hide>
+       </param>
+
        <param>
                <name>Number of Inputs</name>
                <key>nconnections</key>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]