I created an interactive plot using plotly as following:
tracer_red = go.Scatter(x=Xedges_red, y=Yedges_red, mode=\'lines\',