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

Offen
#5,536 4 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@emilykl arbeitet bereits daran.

Seit 18.3.2026.

bug
Vorherrschende Sprache
Python
Sterne
18.8k
Forks
2.8k
Ø Merge
16 Std. 26 Min.
Gemergte PRs (30 T.)
21

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.