plotly / plotly/plotly.js

Inconsistent behavior when providing an array of marker sizes in "markers" mode on scatter3D

Offen
#6,904 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

bug P3
Vorherrschende Sprache
JavaScript
Sterne
18.3k
Forks
2k
Ø Merge
2 T. 12 Std.
Gemergte PRs (30 T.)
28

Beschreibung

When an array of marker sizes is provided in "markers" mode in scatter3D, the displayed size of the markers is half the size displayed when a single value is provided instead of an array. For example, if there are two points on a trace and "[20, 20]" is provided, the displayed markers are displayed at exactly the same size as if only "10" were provided.

Additionally, when you provide an array with fewer elements than points the trace have (for example, a trace with 3 points that is given the array "[20, 20]"), the remaining point markers are sized by default to 10. Maybe that's the expected behavior, but in other charts like scatter2D or scatterpolar the remaining points become hidden (size 0), so I thought it was worth mentioning that too.

Codepen: https://codepen.io/neosdkov/pen/abMrpRo

(not related but thank you all for your great work! I've been using plotly for a few months now and it's just amazing!)

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

Reproduziere die scatter3D-Fälle zur Markierungsgröße aus dem verlinkten CodePen: Vergleiche eine skalare Größe mit einem gleichwertigen Größenarray und probiere anschließend ein Array aus, das kürzer als die Anzahl der Punkte ist. Verfolge den Einstiegspunkt der scatter3D-Marker und überprüfe, dass die Arraywerte mit der skalaren Größenfestlegung übereinstimmen und dass sich das Verhalten bei kurzen Arrays absichtlich und konsistent mit der gemeldeten Erwartung verhält.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript
Bereich
data-visualization
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 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.