Python Forum
Architecting Efficient Plot
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Architecting Efficient Plot
#1
Trying to conceptually think of good way to update a matplotlib plot with data that comes from the serial port.

I have one (multi)process that is waiting for serial data to come in (randomly every 10ms-10sec), and then I call my matplotlib draw function, but the figure window is totally unresponsive (i.e. hourglass) in between updates. Even though I thought matplotlib runs in its own thread (like pyqtgraph).

What's the preferred method.. should I create another process and have the serial process pushes data to it (via a queue), and then have that process call the matplotlib draw function? Or should I use threads instead of multiprocess?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  material for OOP and efficient numrical programming paul18fr 0 2,029 Sep-11-2019, 08:36 PM
Last Post: paul18fr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020