Hi,
I have two traces as below trace1 and trace2. I want to make a vertical line at a particular x value which is in events_i[0].
How do i plot a vertical line at a particular x point, possibly multiple X points which will be from an array which span the entire plot vertically.
I tried using shapes but it is not working.
trace1 = go.Scatter(
x = df123.index,
y = df123[โ1_RSRP0โ],
name = โ1_RSRP0โ,
xaxis=โx1โ,
mode =โmarkersโ
)
trace2 = go.Scatter(
x = df123.index,
y = df123[โ2_RSRP0โ],
name = โ2_RSRP0โ,
xaxis=โx1โ,
mode =โmarkersโ
)
data = [trace0,trace1,trace2]
layout = Layout(
title=โRSRP v timeโ,
yaxis=YAxis(
title = โdbโ
),
xaxis=XAxis(
title= โtimeโ
)
)
fig = Figure(data=data,layout=layout)
iplot(fig)
I am able to plot it using cufflinks with below command, however i wish to do it with plotly , as I have many more customizations to add on plot which are not available in cufflinks yet.
df123.iplot(x = โtimeโ , y = [โP_RSRP0โ , โ1_RSRP0โ,โ2_RSRP0โ ] , mode =โlines+markersโ,vline = events_i[0])
Can someone please help ?
-Thx
Jay