‘Real time’ scatter plot updates using streamlit.

Hello all,

I would like some suggestions on using streamlit to visualise a scatter plot with continuous updates.

In short, I have two topics I will be subscribing to. One with irregular updates (map updates) and another with 4hz updates (position of a vehicle updates). I would like to update the marker on the the scatter plot that represents the position. The map updates are also in the form of points that represent lanes.

Currently I am attempting to render all this, cache the map data and then update the plot with each position update being received. I am attempting to use plotly figure for this however I seem to be running into performance issues. Unsure whether it’s my implementation or a limitatio of the library. Plotly appears to be flickering the map all the time when continuing to update the individual marker and zoom in on it. Thus this leaves the streamlit page unresponsive.

Wondering if anyone had similiar examples or perhaps recommendations on alternative libraries for plotting scatter plots with regular/irregular updates at runtime.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.