Add vertical line in plotly express

as of now i need to write fig.add_vline(x=num) for as many times as i need to draw vertical lines…
is it possible to enhance this using below:

fig.add_vline(x=[num1 , num2 , num3 ])

as goes fot fig.add_hline…

@sujeetomar, it’s not built in plotly but you could write a function which does this…

1 Like