@@ -218,7 +218,7 @@ class uhd_fft(gr.top_block, Qt.QWidget, UHDApp):
218
218
self .qtgui_waterfall_sink_x_0 .enable_grid (False )
219
219
self .qtgui_waterfall_sink_x_0 .disable_legend ()
220
220
alpha = 10. ** (len (self .channels )- 1 )
221
- for i in xrange (len (self .channels )):
221
+ for i in range (len (self .channels )):
222
222
self .qtgui_waterfall_sink_x_0 .set_line_label (i , "Channel {0}" .format (i ))
223
223
self .qtgui_waterfall_sink_x_0 .set_color_map (i , 0 )
224
224
self .qtgui_waterfall_sink_x_0 .set_line_alpha (i , alpha )
@@ -240,7 +240,7 @@ class uhd_fft(gr.top_block, Qt.QWidget, UHDApp):
240
240
self .qtgui_time_sink_x_0 .enable_grid (False )
241
241
self .qtgui_time_sink_x_0 .enable_control_panel (True )
242
242
self .qtgui_time_sink_x_0 .disable_legend ()
243
- for i in xrange (2 * len (self .channels )):
243
+ for i in range (2 * len (self .channels )):
244
244
if (i % 2 == 0 ):
245
245
self .qtgui_time_sink_x_0 .set_line_label (i , "Re{{Channel {0}}}" .format (i / 2 ))
246
246
else :
@@ -268,7 +268,7 @@ class uhd_fft(gr.top_block, Qt.QWidget, UHDApp):
268
268
self .qtgui_freq_sink_x_0 .set_fft_average (self .fft_average )
269
269
self .qtgui_freq_sink_x_0 .enable_control_panel (True )
270
270
self .qtgui_freq_sink_x_0 .disable_legend ()
271
- for i in xrange (len (self .channels )):
271
+ for i in range (len (self .channels )):
272
272
self .qtgui_freq_sink_x_0 .set_line_label (i , "Channel {0}" .format (i ))
273
273
self .qtgui_freq_sink_x_0 .set_line_width (i , widths [i ])
274
274
self .qtgui_freq_sink_x_0 .set_line_color (i , colors [i ])
@@ -305,7 +305,7 @@ class uhd_fft(gr.top_block, Qt.QWidget, UHDApp):
305
305
self .qtgui_phase_plot .enable_grid (True )
306
306
self .qtgui_phase_plot .enable_control_panel (True )
307
307
self .qtgui_phase_plot .disable_legend ()
308
- for i in xrange (len (self .channels ) - 1 ):
308
+ for i in range (len (self .channels ) - 1 ):
309
309
self .qtgui_phase_plot .set_line_label (i , "Phase Delta Channels {0}/{1}" .format (i , i + 1 ))
310
310
self .qtgui_phase_plot .set_line_width (i , widths [i ])
311
311
self .qtgui_phase_plot .set_line_color (i , colors [i ])
0 commit comments