fig2plotly does not handle timeseries plots
未关闭
还没有人认领这个 Issue。
- 主要语言
- MATLAB
- 星标
- 413
- 派生
- 166
- PR 合并指标
- 30 天内没有已合并 PR
描述
fig2plotly fails completely if I provide it with a timeseries plot that has datetimes on as the x-axis.
Here's an example with a tscollection mydata, where mydata.Time is double data that is posix time (seconds since epoch), and the mydata.TimeInfo.StartDate is '01-Jan-1970 00:00:00.000'.
fig = figure; plot(myData.accelmeterZ_mps2)

fig2plotly(fig);
Error using response_handler (line 31)
Hm... Plotly had some trouble decoding your 'args'. Are you sure your data or styling object is in the right format? Check out
the examples at plot.ly/api for guidance.
However, if I just plot the underlying data, it works just fine:
fig2 = figure; plot(myData.Time, myData.accelmeterZ_mps2.Data);

fig2plotly(fig2);
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先使用 fig2plotly(fig) 通过 tscollection 示例复现该故障,然后将其与 myData.Time 和 myData.accelmeterZ_mps2.Data 的正常绘图进行比较。检查第 31 行 response_handler 错误附近对 datetime 或 timeseries 绘图数据的处理。完成标准是 timeseries 图形能够成功导出,且不会出现 Plotly 解码错误。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- matlab
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100