Skip to content

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

Closed
@xarico10

Description

@xarico10

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions