plotly / plotly/plotly.py

Box plot with custom quartiles being inconsistent with upperfence parameter

Offen
#3,558 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

In the documentation: https://plotly.com/python/box-plots/#box-plot-with-precomputed-quartiles

There is a code sample with upperfence parameter set to [5,6,7] which doesn't really make sense because the q3 values are [7,8,9] and I think the upperfence of a box plot can't be lower than the q3 values. However, the provided example returns a boxplot with all upperfences set to 9, which is the maximum-minimum upperfence value possible for the provided boxplots. I think this behavior is not desirable because difficult to understand.

I think it would be better to raise an error. If you prefer not to raise an error, I guess a better option would be to set the upperfence to the minimum possible values in each boxplot.

Have a nice day.

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 mit dem verlinkten Dokumentationsbeispiel „Box plot with precomputed quartiles“ und verfolge, wie die Werte q3 und upperfence behandelt werden. Vergleiche die dokumentierte Ausgabe mit dem angeforderten Verhalten und definiere und überprüfe anschließend ein konsistentes Ergebnis für ungültige upperfence-Werte; das Dokumentationsbeispiel sollte nicht länger verwirrend sein.

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
Größtenteils klar
Anfängerfreundlichkeit
38/100

Neue Issues direkt in Ihr Postfach

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