@PlotlyUsername
Yes, I can confirm that oddly only the subplot of title βJβ βleaksβ upward and downwatd on consecutive zooms . You should open an issue on plotly.js, which is responsible for this behaviour. In order to be understood what you mean by leaking cell, it is recommended to post an image like this:
Your code can be simplified, by adding the hrect(s) at once for all subplots, and removing the counter x:
for i in range(1, plot_rows + 1):
for j in range(1, plot_cols + 1):
k =(i-1)*plot_cols+j-1
fig6.add_trace(go.Scatter(x=df.index, y=df[df.columns[k]].values,
name = df.columns[k],
mode = 'lines'),
row=i,
col=j)
fig6.add_hrect(y0=0, y1=1000, line_width=0, fillcolor="red", opacity=0.25, row="all", col="all")
fig6.add_hrect(y0=3000, y1=6000, line_width=0, fillcolor="red", opacity=0.25, row="all", col="all")
fig6.update_layout(height=650)
