Skip to content

Marker size not being consistent with MATLAB's scale on scatter plots #175

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

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

Comments

@xarico10
Copy link
Contributor

Although size varies as indicated, the scale is way different compared to MATLAB's scale:

Code:

rng(1)

x = linspace(0,3*pi,200);
y = cos(x) + rand(1,200);
sz = linspace(1,100,200);
scatter(x,y,sz)

fig2plotly();

Expected and generated (https://chart-studio.plotly.com/~xarico10/299/#/) plots:
Captura de Pantalla 2021-07-25 a la(s) 7 03 42 p  m
Captura de Pantalla 2021-07-25 a la(s) 7 03 53 p  m

As shown, sizes differ a lot: in generated plot, small circles are way smaller and big circles are way bigger.

Examples on using sz input argument can be found on:
https://www.mathworks.com/help/matlab/ref/scatter.html#btrli6o-1

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

No branches or pull requests

2 participants