Hi @thoo,
I think you should be able to loop over your traces_1
and traces_2
lists.
fig = tools.make_subplots(rows=1, cols=2)
for trace in traces_1:
fig.append_trace(traces, 1, 1)
for trace in traces_2:
fig.append_trace(traces, 1, 2)
Or, you could specify the lists to add_traces
and pass the row/col indices as lists as well.
fig.add_traces(traces_1, rows=[1]*len(traces_1), cols=[1]*len(traces_1)
fig.add_traces(traces_2, rows=[1]*len(traces_2), cols=[2]*len(traces_2)
Hope that helps!
-Jon