plotly / plotly/plotly_matlab

animatedline() not supported

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

@harshpurwar 已经在做这个了。

开始于 2021年9月5日。

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

描述

When using animatedline() to create an animated line, an error is being printed.

h = animatedline;
axis([0,4*pi,-1,1])

x = linspace(0,4*pi,1000);
y = sin(x);
for k = 1:length(x)
    addpoints(h,x(k),y(k));
    drawnow
end

fig2plotly(gcf, 'offline', false);

Prints the following error:

Error using response_handler (line 31)
Expecting (x, y) pairs

Error in makecall (line 32)
    response_handler(resp);

Error in plotly (line 28)
response = makecall(args, origin, structargs);

Error in plotlyfig/plotly (line 449)
                response = plotly(obj.data, args);

Error in fig2plotly (line 49)
p.plotly;

Error in untitled16 (line 12)
fig2plotly(gcf, 'offline', false);

Expected animation:

https://user-images.githubusercontent.com/87881895/128069173-e8de67d3-0eca-4ddc-9cb2-32315869bdb2.mov

Examples on using animatedline() can be found on:
https://www.mathworks.com/help/matlab/ref/animatedline.html#responsive_offcanvas

贡献指南

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

从这里开始

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

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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