I'm have two very large dataframes that are identical in size df and df2. One is raw data with the other being filtered. I'm trying to produce 36 subplots with each cell containing the raw and filtered data, and have tried this;
plot_rows = 6
plot_cols = 6
fig = make_subplots(rows=plot_rows, cols=plot_cols)
x = 0
for i in range(1, plot_rows + 1):
for j in range(1, plot_cols + 1):
fig.add_trace(go.Scattergl(x=df.index, y=df[df.columns[x]].values,
name = df.columns[x],
mode = 'lines'),
row=i,
col=j)
fig.add_trace(go.Scattergl(x=df2.index, y=df2[df2.columns[x]].values,
name = df2.columns[x],
mode = 'lines'),
row=i,
col=j)
x = x+1
fig.show()
The process finishes without error and a window is opened, however it is blank with no charts at all. I've also tried to replace;
fig.add_trace(go.Scattergl(x=df2.index, y=df2[df2.columns[x]].values,
name = df2.columns[x],
mode = 'lines'),
row=i,
col=j)
With;
fig.append_trace(go.Scattergl(x=df2.index, y=df2[df2.columns[x]].values,
name = df2.columns[x],
mode = 'lines'),
row=i,
col=j)
Any help or guidance is really appreciated.

fig.show()for each trace when there is only one figure? very large data frames, alsoiloc[]would be more efficient. very large 5M+ records? not surprised it's not working, it's not a suitable approach to very large data sets. putting data into memory multiple times