plotly / plotly/plotly.py

[BUG]: Setting only an upper or lower bound for axes does not work when one axis is categorical, or in Jupyter

Open
#5,536 4 comments 0 reactions 1 assignee View on GitHub

@emilykl is already working on this.

Since Mar 18, 2026.

bug
Dominant language
Python
Stars
18.8k
Forks
2.8k
Avg merge
16h 26m
Merged PRs (30d)
21

Description

Setting only the upper or lower bound for axes in plotly (introduced here) does not work (at least in scatter plots). If one of the bounds is set to None, the range does not change at all.

Image
import plotly.express as px

fig = px.scatter([0,6])
fig = fig.update_yaxes(range=[0, None])
display(fig)

Plotly 6.6

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.