Symetrical log scale

Hi there,

I was just wondering if there is a way to have a “symetrical log scale” as shown for the y-axis in the following plot:

Thanks,

Alex-

@Alexboiboi If by symmetrical you mean with right and left log yaxis, the answer is positive:

fig = make_subplots(specs=[[{"secondary_y": True}]])

fig.update_layout(yaxis_type='log', yaxis2_type='log') #eventually here you can update, yaxis2_range
fig.add_trace(go.Scatter(
    x=[0, 1, 2, 3, 4, 5, 6, 7, 8],
    y=[8, 7, 6, 5, 4, 3, 2, 1, 0]
), secondary_y=False)

fig.add_trace(go.Scatter(
    x=[0, 1, 2, 3, 4, 5, 6, 7, 8],
    y=[0, 1, 2, 3, 4, 5, 6, 7, 8]
), secondary_y=True)

Hi @empet,

thanks for your answer but I was actually only trying to reproduce the left y-axis in the image, with plotly