How to show vertical line on y axis in subplot

I have created subplot using two charts: heatmap and and scatter plot. And need to draw vertical lines on second y axis. I have gone with the shape attribute. However no line is visible.
Can someone please suggest. Below is the piece of code, I am using for the same:

fig = make_subplots(
rows=2, cols=1, shared_xaxes=True, vertical_spacing=0.02, row_heights =[0.1, 0.9]
)

fig.update_layout(
shapes=[
# Line Vertical
go.layout.Shape(
type=“line”,
yref=“y2”, (#Also tried with y and paper)
x0=[1, 2, 3 ,4, 5],
y0=0,
x1=[1, 2, 3 ,4, 5],
y1=10,
line=dict(
color=“RoyalBlue”,
width=10,
dash=“dot”
)
)
]
)

Thanks in advance.

Can somebody respond to this question as I am having the same issue.

Hi, I have same problem, can you help?

I have found a solution. :slight_smile:
On go.layout.Shape set yref=“paper” and on add_shape set row=1, col=1 for some proper valuses on subplot grid.