plotly.js icon indicating copy to clipboard operation
plotly.js copied to clipboard

render histograms on log axes with bin edge at 0

Open nicolaskruchten opened this issue 4 years ago • 3 comments

In this codepen, the first plot shows a basic histogram, although note that the leftmost bin edge is 0. The second plot just changes the x-axis type to log, which causes all the bars to disappear. The third plot shows that histograms on log axes can and do work, when there is not a bin edge at 0.

It would be nice if histograms reliably rendered on log axes, even with linearly computed bins like we have right now, because then folks could compute their own log bins and display plots. In some future iteration we could support automatic log bins, but let's just fix this one bug first? Would be good to make sure it's fixed for histogram2d etc as well if possible

nicolaskruchten avatar May 31 '22 15:05 nicolaskruchten

Any progress?

px.histogram(log_x=True) fails because of this bug if some x values are zero.

FlorinAndrei avatar Mar 17 '23 21:03 FlorinAndrei

when could we use px.histogram(log_x=True), we are expecting!!

Msx1998 avatar Nov 22 '24 13:11 Msx1998

Hi @Msx1998 - it's not currently on our roadmap, but we would be happy to review a pull request from the community. Thanks - @gvwilson

gvwilson avatar Nov 22 '24 13:11 gvwilson