Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
xarico10 opened this issue Jul 26, 2021 · 0 comments
Open

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

xarico10 opened this issue Jul 26, 2021 · 0 comments
Assignees
Labels
documentation documentation

Comments

@xarico10
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation documentation
Projects
None yet
Development

No branches or pull requests

4 participants