plotly / plotly/plotly_matlab

Size variation not working using swarmchart

未关闭
#180 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

documentation
主要语言
MATLAB
星标
413
派生
166
PR 合并指标
30 天内没有已合并 PR

描述

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:
Captura de Pantalla 2021-07-25 a la(s) 11 43 42 p  m
Captura de Pantalla 2021-07-25 a la(s) 11 43 55 p  m

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

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先运行提供的 swarmchart 示例,并比较 fig2plotly() 前后的输出。跟踪 fig2plotly() 如何处理三个系列的 swarmchart sz 输入。当生成的绘图对于值 5、20 和 50 保留明显不同的标记大小时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
matlab
领域
data-visualization
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。