|
From: | Marcus Müller |
Subject: | Re: [Discuss-gnuradio] Matplotlib and GNU Radio: Dynamic plot |
Date: | Thu, 21 Sep 2017 10:04:48 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
Interesting! So, my approach in this case would be: 1. Write a block that takes the data from your flow graph, and
converts it to a format (e.g. JSON, KML, GPX,…) that makes sense
for the receiving end. This data should be emitted as messages
(not python variables). You can of course also write your own visualization block. That's absolutely feasible; it's just that matplotlib is really not the tool of choice for that here. But it's definitely not the software you need, either, to draw points on an image. There's literally dozens of python toolkits that can display images and modify them. Writing visualization blocks will require you to think about how
to thread them. And since it'll be hard for the block to interact
with the main thread, but that would be necessary for GUI blocks
to work, I don't know whether that is an entry level project.
Anyway, do have a look at Tim O'Shea gr-pyqt ; it contains python
visualization blocks, and I don't think it'll be hard to
understand and modify them. Look at the raster_plot.py for
example. Best regards, Marcus On 09/20/2017 10:21 PM, Ali wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |