You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG]: Heatmap with a single x value on a category axis is drawn at 2× its category index #8175
When a heatmap trace has exactly one x value on a categorical x-axis, its column is drawn at twice the category’s index. This only shows when that category isn’t the first one on the axis.
Expected: column a at position 2, right next to c. Actual: column a is drawn at position 4, the axis range grows to [-0.5, 4.5], and there’s a gap. With 3 categories before it, it lands at 6. When the trace comes first (index 0), it looks correct.
Workaround: numeric x with tickvals/ticktext.
Tested with plotly.js 4.1.1 (via plotly.py 7.1.0).
Thanks for the report! This does seem like a bug. Our team likely won't be able to get to this any time soon. Would you be interested in investigating and creating a fix?
Activity
camdecoster commentedon Nov 18, 2026
Thanks for the report! This does seem like a bug. Our team likely won't be able to get to this any time soon. Would you be interested in investigating and creating a fix?