I have an existing plotly plot created with the python API using:
fig = tools.make_subplots(rows=1, cols=1)
I’ve appended several traces to this plot.
I would now like to add a secondary y axis to this plot, and append a new trace to that secondary y axis. How can i do this? So far, i tried:
trace2 = go.Scatter(x=rainfall.index, y=rainfall[col],name=‘Rainfall [mm]’, yaxis=‘y2’)
fig.append_trace(trace2,1,1)