Learn how to use Dash Bio for next-gen sequencing & quality control. 🧬Register for the Oct 27 webinar.

How to generate same coloured vline as per the plot

I have the below code which generates a plot with four line graphs in it, I have also written a code to plot the vertical lines in the plot. But the vertical lines are of same color, which makes more complicated to understand. How to make the vertical lines to be plotted as same colour same as the line colour? My code and plot is below!

fig = px.line(trace_data, x='Time', y=slot_names_list,)
for values in range(len(vline_time)):
      fig.add_vline(x=vline_time[values],annotation_text=slot_names_list[values])

I want the color of the vertical lines to be same as the line plot color!