How to plot stream data with python animation (or other method?)

Hi,

I wanted to ask what would be the best approach to plot live data from the accelometer (at 25Hz)?

Should I update the plot with python matplotlib.animation?
Other method?

And where this update plot should be?

Should it within the Callback function to process/parse the gyroscope data?

From the example (https://mbientlab.com/tutorials/CppDevelopment.html#streaming)
def data_handler(self, ctx, data):
print("%s -> %s" % (self.device.address, parse_value(data)))

Any guidelines for the location of realtime plotting and realtime processing of the signal would be very helpful.

Thank you,
Omri

Comments

  • Python plotting libraries - Matplotlib, Seaborn, Plotly, and Bokeh
    Python analysis libraries - Pandas

Sign In or Register to comment.