plotly / plotly/plotly.py

tickmode='sync' option is not working as expected

Offen
#4,565 2 Kommentare 1 Reaktion 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

I was trying to use the multi-axes functionality in Plotly with the tickmode='sync' option, but the result was not as I expected. The grid axes are not aligned at y = 0 and the ticks of the second y axis are not "nice" rounded numbers. I found out that this issue was already raised in the repository where the functionality was originally pulled from: https://github.com/VictorBezak/Plotly_Multi-Axes_Gridlines/issues/4. Unfortunately, it was never resolved and since it is incorporated in Plotly I think it would make more sense to raise the issue here. Hopefully, someone can help me out!

P.S.: I think issue https://github.com/plotly/plotly.py/issues/4351 is referring to the same problems, but it is not as nicely explained as the issue mentioned above.

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

Beginne damit, den Fall mit mehreren Achsen und tickmode='sync' zu reproduzieren, und vergleiche anschließend das Verhalten mit dem verknüpften Upstream-Issue und plotly.py issue #4351. Abgeschlossen ist die Aufgabe, wenn die Gitterachsen bei y = 0 ausgerichtet sind und die zweite y-Achse schöne, gerundete Tick-Werte verwendet.

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
Aktiv
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
42/100

Neue Issues direkt in Ihr Postfach

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