plotly / plotly/plotly_matlab

swarmchart not working correctly (doesn't present any jittering)

Offen
#184 0 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@gilbertogalvis arbeitet bereits daran.

Seit 08.9.2021.

documentation
Vorherrschende Sprache
MATLAB
Sterne
413
Forks
166
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

When using swarmchart() data is supposed to be offset (jittered) in the x-dimension for easier visualization. However, this isn't happening and data is just being plotted and stacked on its original value:

For example:

rng(1)

x = [ones(1,500) 2*ones(1,500) 3*ones(1,500)];
y1 = 2 * randn(1,500);
y2 = 3 * randn(1,500) + 5;
y3 = 5 * randn(1,500) + 5;
y = [y1 y2 y3];
swarmchart(x,y)

fig2plotly();

Expected and generated (https://chart-studio.plotly.com/~xarico10/337/#/) plots:
Captura de Pantalla 2021-07-26 a la(s) 12 08 34 a  m
Captura de Pantalla 2021-07-26 a la(s) 12 08 47 a  m

Examples on using swarmchart() can be found on:
https://www.mathworks.com/help/matlab/ref/swarmchart.html#responsive_offcanvas

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

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.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

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