I am collecting data from a sensor with a sampling frequency of 100Hz.
I would like to plot the data in real time as I receive them.
I have tried:
- to animate matplotlib: How to animate a line chart, but this approach is too slow.
- to update altair chart with add_rows function: Appending to scatter chart sub-plots , but I am not able to remove past data to keep visible in the chart only a certain amount of samples (e.g. 1000 samples)
Would anybody be so kind to suggest me how to plot a stream of real-time data with streamlit?
Thank you very much!!!