How to plot stream data with python animation (or other method?)
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?
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.