# Question about Plotting the Spectrum(Power against frequency) with usrp\_sense.py

**URL:** <https://www.ruby-forum.com/t/question-about-plotting-the-spectrum-power-against-frequency-with-usrp-sense-py/233176>\
**Category:** GNU Radio\
**Created:** [November 21, 2014, 6:46pm UTC](https://www.ruby-forum.com/t/question-about-plotting-the-spectrum-power-against-frequency-with-usrp-sense-py/233176 "2014-11-21T18:46:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [November 21, 2014, 6:46pm UTC](https://www.ruby-forum.com/t/question-about-plotting-the-spectrum-power-against-frequency-with-usrp-sense-py/233176/1 "2014-11-21T18:46:27Z")

</div>

Question about the spectrum plot of the usr\_sense.py:  
I have modified the old usrp\_spectrum\_sense.py to fit the latest version  
of  
gnuradio, and now I can run the program and export the m.data into a txt  
file, I wonder how to plot the dynamic graph of power against frequency  
for  
the visualization of the spectrum analyzer.  
Any direction or examples will be very helpful for me.

Thanks a lot

here is the source code of usrp\_spectrum\_sense.py  
[http://gnuradio.org/redmine/projects/gnuradio/repository/revisions/9880e7bb383054aa43681b52ebd33c8fd4cb8fcb/entry/gnuradio-examples/python/usrp/usrp\_spectrum\_sense.py](http://gnuradio.org/redmine/projects/gnuradio/repository/revisions/9880e7bb383054aa43681b52ebd33c8fd4cb8fcb/entry/gnuradio-examples/python/usrp/usrp_spectrum_sense.py)

–  
View this message in context:  
[http://gnuradio.4.n7.nabble.com/Question-about-Plotting-the-Spectrum-Power-against-frequency-with-usrp-sense-py-tp51380.html](http://gnuradio.4.n7.nabble.com/Question-about-Plotting-the-Spectrum-Power-against-frequency-with-usrp-sense-py-tp51380.html)  
Sent from the GnuRadio mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![Leo\_Yang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/439d5e/32.png) [@Leo\_Yang](https://www.ruby-forum.com/u/Leo_Yang)\
**Post date:** [November 24, 2014, 3:36pm UTC](https://www.ruby-forum.com/t/question-about-plotting-the-spectrum-power-against-frequency-with-usrp-sense-py/233176/2 "2014-11-24T15:36:24Z")

</div>

Do you want to plot the data using GNU Radio? What’s the format?

M

---

<div class="post-metadata">

**Author:** ![Leo\_Yang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/439d5e/32.png) [@Leo\_Yang](https://www.ruby-forum.com/u/Leo_Yang)\
**Post date:** [November 24, 2014, 3:39pm UTC](https://www.ruby-forum.com/t/question-about-plotting-the-spectrum-power-against-frequency-with-usrp-sense-py/233176/3 "2014-11-24T15:39:25Z")

</div>

the plot should be the power of the signal against the frequency, when  
u say  
the format, do u mean the type of the variable ?

–  
View this message in context:  
[http://gnuradio.4.n7.nabble.com/Question-about-Plotting-the-Spectrum-Power-against-frequency-with-usrp-sense-py-tp51380p51413.html](http://gnuradio.4.n7.nabble.com/Question-about-Plotting-the-Spectrum-Power-against-frequency-with-usrp-sense-py-tp51380p51413.html)  
Sent from the GnuRadio mailing list archive at [Nabble.com](http://Nabble.com).
