Skip to content

A histogram with a bin edge at 0 on a log x axis autoranges over 16 decades #127

Open

Description

@jvdd

Problem

A histogram whose data starts at 0, drawn on a log x axis, autoranges over about 16 decades. All bars sit at the right edge of the plot.

Reproduction

  • Data: v from 0 to 100 in steps of 0.1 (1001 rows).
  • add_histogram(x="v", bins=50), then update_layout(xaxis={"type": "log"}).
  • The x range that Plotly draws is [-14.27, 2.0] in log10 units, so 5e-15 to 100.
  • The data from 2 to 100 fills the right 2 % of the plot.

Measured in a browser on main plus #118, plotly.js 4.1.1.

Notes

Found in the review of #118.

Activity

  1. added
    bug
    on Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions