How to add ~100 traces in a plot without using an API call each time?

So if I understand your question properly, you just want to be able to plot a 100-trace chart in one API call.

You can just do something like this:

dataPanda = []
for data in plotData:
    trace = go.Scatter(...)
    dataPanda.append(trace) 

# now do the api call
fig = dict(data=dataPanda, layout=layout)
py.iplot(fig)

Youโ€™re just making a list of your traces [trace1, trace2, ..., traceN] and then plotting that

5 Likes