Hello,
I’m new to plotly and I’m trying to update a plot (a single line that has a new point every time) when I receive my data.
The ting is, I want to start plotting before receiving all my data points and update ‘real-time’ when I get them.
The only thing close I have managed to do is:
import plotly.plotly as py
from plotly.graph_objs import *
i=0
while i<10:
new_data = dict(x=[3+i,4+i], y=[3+i,4+i] )
data = [ new_data ]
i = i+1
plot_url = py.plot(data, filename='extend plot', fileopt='extend')
However, this opens a new tab for each time py.plot is called and I can’t find a way to live update the plot in the same tab.
Thank you for the help!