Color variation not working using swarmchart
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 48/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- matlab
调研方向
首先运行包含三次 swarmchart() 调用和 fig2plotly() 的 MATLAB 示例;然后跟踪 swarmchart() 标记颜色的 fig2plotly() 转换入口点。当导出的 Plotly 图形保留 issue 中所示的红色、绿色和蓝色标记颜色时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
The input argument c isn't changing marker's color 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,'red')
hold on
swarmchart(x2,y2,'green')
swarmchart(x3,y3,'blue')
hold off
fig2plotly();
The previous code should plot 3 different series with 3 different marker's color (red, green and blue), however, they're all being plotted with the default plotly colors.
Expected and generated (https://chart-studio.plotly.com/~xarico10/329/#/) plot:

Examples on using the c input argument on swarmchart() can be found on:
https://www.mathworks.com/help/matlab/ref/swarmchart.html#mw_41bfbeb8-a8e2-4fd1-a6d8-c4b05cd5d8d8
- 主要语言
- MATLAB
- 星标
- 414
- 派生
- 166
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
plotly/plotly_matlab 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 45/100
plotly/plotly_matlab#523 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
plotly/plotly_matlab#481 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 35/100
plotly/plotly_matlab#480 ·
-
难度 1/5 1 小时以内 新手友好度 35/100
plotly/plotly_matlab#479 · 1 条评论 · 3 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 25/100
plotly/plotly_matlab#474 ·
查看 plotly/plotly_matlab 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 85/100
flybywiresim/aircraft#11006 ·
维护者通常 2 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
HenrikBengtsson/R.matlab#61 ·
-
easy first-contributor first-contributors good first issue help wanted matlab up-for-grabs
难度 1/5 1 小时以内 新手友好度 85/100
fork-commit-merge/fork-commit-merge#8442 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 87/100
VH-Lab/NDI-matlab#1115 · 1 条评论 ·
维护者通常 1 天内回复
-
bug-report SimpleFlight
难度 2/5 1-3 小时 新手友好度 68/100
iamaisim/ProjectAirSim#241 ·
维护者通常 1 天内回复