Hi guys,
I wonder if anyone know how to create interactive multiple line scatters using plotly with jupyter notebook?
I wanted something like this but with the interaction offered by plotly.
with colors indicates the tracks with final position toward a side.
Since there will be more than hundreds of tracks, does this mean that i will need to create traces for each track?
@davince As long as all your plots have the same type=βscatterβ , you can define a function as follows:
def my_trace(x, y, **kwargs):# kwargs are keys you intend to set in the trace definition
return dict(type='scatter',
x=x,
y=y,
mode='lines',
line=dict(width=your_width, color=your_color),
name='trace_name',
)