Size variation not working using swarmchart
Nobody has claimed this yet.
- Dominant language
- MATLAB
- Stars
- 413
- Forks
- 166
- PR merge metrics
- No merged PRs in 30d
Description
The input argument sz isn't changing marker's size when using swarmchart.
rng(1)
x1 = ones(1,100);
x2 = 2 * ones(1,100);
x3 = 3 * ones(1,100);
y1 = 2 * randn(1,100);
y2 = [randn(1,50) randn(1,50) + 4];
y3 = 5 * randn(1,100) + 5;
swarmchart(x1,y1,5)
hold on
swarmchart(x2,y2,20)
swarmchart(x3,y3,50)
hold off
fig2plotly();
The previous code should plot 3 different series with 3 different marker's size, however, they're all being plotted with the same size.
Expected and generated (https://chart-studio.plotly.com/~xarico10/323/#/) plot:


Examples on using the sz input argument on swarmchart() can be found on:
https://www.mathworks.com/help/matlab/ref/swarmchart.html#mw_ea7dfc24-dc30-4f02-83a9-eb9d20bb2748
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the provided swarmchart example and comparing its output before and after fig2plotly(). Trace how fig2plotly() handles the swarmchart sz input for the three series. Done means the generated plot preserves visibly different marker sizes for values 5, 20, and 50.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- matlab
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100