plotly / plotly/plotly.py

subplot layouts break with go.Scatter and go.Scattergl

Offen
#4,375 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

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

Beschreibung

When I plot many subplots, the axes occasionally break. I am using fixed subplot sizes. Occasionally line plots will not plot on their respective subplot axes. You can see the interactive hover actions do work on the axes, but the lines themselves are drawn shifted much higher or lower than the axis. All the go.Heatmap objects seem to graph just fine.

Sometimes I can fix the layout bug by choosing a different axis height, but most values don't fix it so it's a long game of guess-and-check.

audio_diff.html.zip

Screenshot 2023-10-05 at 1 42 38 PM
Screenshot 2023-10-05 at 1 42 46 PM

Google chrome seems to report some errors

Specifying overflow: visible on img, video and canvas tags may cause them to produce visual content outside of the element bounds. See https://github.com/WICG/shared-element-transitions/blob/main/debugging_overflow_on_images.md .
1 source

audio_diff.html:12

One or more documents in this page is in Quirks Mode, which will render the affected document(s) with quirks incompatible with the current HTML and CSS specifications.
Quirks Mode exists mostly due to historical reasons. If this is not intentional, you can add or modify the DOCTYPE to be <!DOCTYPE html> to render the page in No Quirks Mode.

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.

Rechercherichtung

Öffne zunächst die angehängte audio_diff.html.zip in Chrome und reproduziere das Subplot-Layout mit fester Größe mit go.Scatter und go.Scattergl neben go.Heatmap. Vergleiche die verschobenen Linienspuren mit ihren Achsen und die Browser-Warnungen; als erledigt gilt die Aufgabe, wenn die Liniendiagramme über alle getesteten Höhen hinweg an ihren jeweiligen Subplot-Achsen ausgerichtet bleiben.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
data-visualization
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

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