plotly / plotly/plotly_matlab

fig2plotly fails with boxplot

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

还没有人认领这个 Issue。

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

描述

When I invoke fig2plotly on a boxplot as in:

boxplot(SQ_reads_mean,'Jitter',0.15);
fig2plotly(gcf, 'offline', true, 'open', false, 'filename', 'Control_AAGC_63bp_raw_reads_quality');

the system(Matlab running on a Code Ocean compute capsule) reports the following error:

{Index exceeds matrix dimensions.

Error in updateData (line 100)
~strcmp(obj.data{dataIndex}.type,'box')

Error in plotlyfig/update (line 582)
updateData(obj,n);

Error in plotlyfig (line 208)
obj.update;

Error in fig2plotly (line 44)
p = plotlyfig(varargin{:});

Error in SSR_Control_Account_for_PB_Artifact_Bbedit (line 68)
fig2plotly(gcf, 'offline', true, 'open', false, 'filename',
'Control_AAGC_63bp_raw_reads_quality');
}

贡献指南

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

从这里开始

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

调研方向

使用提供的 MATLAB boxplot 和 fig2plotly 调用重现该故障。从第 100 行的 updateData 开始,然后跟踪来自 plotlyfig/update 和 fig2plotly 的调用;确定 boxplot 数据索引为何超出可用数据范围。相同的 boxplot 能够在没有报告的矩阵维度错误的情况下完成转换,即表示完成。

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

评估

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

把新 issue 发到你的邮箱

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