Open
Description
Code:
rng(1)
x1 = ones(1,500);
x2 = 2 * ones(1,500);
x = [x1 x2];
y1 = 2 * randn(1,500);
y2 = [randn(1,250) randn(1,250) + 4];
y = [y1 y2];
swarmchart(x,y,'filled','MarkerFaceAlpha',0.5,'MarkerEdgeAlpha',0.5)
fig2plotly();
The previous code should plot clearer edges and fill color in the markers, however, is not.
Expected and generated (https://chart-studio.plotly.com/~xarico10/431/#/) plots:
An example on using these Name-Value arguments can be found on:
https://www.mathworks.com/help/matlab/ref/swarmchart.html#mw_bcfda3c4-f6bc-408d-b72f-b456acbc77f0