✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🐇 Announcing Dash VTK for 3d simulation graphics. Check out the March webinar.

Box plot log scale including 0

Hi,

I have been searching for quite a while and tried a lot of options and parameters. However, I am not able to create a box plot with log scale including the 0. There were some people asking that before. Most of them haven’t managed to do that either. There is this post that should work:


but I tried the options in all variations and it still doesn’t work.

Without linear axis type it looks like this and the data is skewed:
Bildschirmfoto 2020-05-12 um 20.59.36

With log axis type:

go.Layout(
    height=height,
    title=layout_title,
    xaxis=dict(
        automargin=True,
        type="log",
    ),
    yaxis=dict(
        automargin=True,
    ),
)

It looks like this:
Bildschirmfoto 2020-05-12 um 21.00.53

I tried a lot with ‘tickvals’ and ‘ticktext’ but the ticks are not equally spaced along the xaxis like in the log mode. Does anybody have an idea?

Thank you