Traces in facet plot drawn outside of figure area.
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 18.8k
- Forks
- 2.8k
- Ø Merge
- 16 Std. 26 Min.
- Gemergte PRs (30 T.)
- 21
Beschreibung
Code to reproduce the issue:
import pandas as pd
import numpy as np
import plotly
import string
np.random.seed(0)
plotly.io.renderers.default = "browser"
COL_NAME = "Key"
FIGURE_HEIGHT = 12200
column_names = string.ascii_letters[0:20]
# FIGURE_HEIGHT = 7200 # This removes the issue
# column_names = string.ascii_letters[0:10] # This removes the issue
df = pd.DataFrame(np.random.randint(0,100,size=(100, len(column_names))), columns=list(column_names))
df.columns.name = COL_NAME
fig = plotly.express.line(df,facet_row=COL_NAME,height=FIGURE_HEIGHT)
fig.show()
Screenshot of what I'm seeing:

Issue may have to do with the height argument or the number of traces included in the figure, or some other aspect I don't suspect.
Thank you for the help and for the great visualization tool!
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginnen Sie mit der bereitgestellten Reproduktion unter Verwendung von plotly.express.line mit facet_row, einer Höhe von 12.200 Pixeln und 20 Spalten, und untersuchen Sie anschließend die resultierende Abbildung über fig.show(). Vergleichen Sie sie mit den Fällen mit 7.200 Pixeln Höhe und 10 Spalten, in denen das Problem nicht reproduziert wird; fertig ist die Untersuchung, wenn im fehlerhaften Fall alle Traces innerhalb des Abbildungsbereichs bleiben.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- numpy, pandas, plotly, python
- Bereich
- data-visualization
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Aktiv
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 55/100