Log Axis - Duplicates Y Axis Label

Hey,

I have been using the following properties to plot my data in a readable way :

layout = go.Layout(
    barmode = 'stack',
    yaxis=dict(
        type='log',
        autorange=True,
    )

However, I have a duplicate on my y label that I can’t fix. Did anyone already got the same issue and solved it. I think there is an easy way to hide these “2” and “5” ticks, but did not succeed…

image

It is actually two stacked bar chart, the second bar Chart has null values. I guess that’s why this low number appears on the Y axis, but I’d simple like to hide it.

Many thanks guys,

Quentin

Hi @qdumont,

I think you can get what you want by setting the fig.layout.yaxis.dtick property to 1. So something like

...
layout = go.Layout(
    barmode = 'stack',
    yaxis=dict(
        type='log',
        autorange=True,
        dtick=1,
    )

Hope that helps!
-Jon