Skip to content

animatedline() not supported #276

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
xarico10 opened this issue Aug 3, 2021 · 0 comments
Open

animatedline() not supported #276

xarico10 opened this issue Aug 3, 2021 · 0 comments
Assignees

Comments

@xarico10
Copy link
Contributor

xarico10 commented Aug 3, 2021

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:

Grabacion.de.pantalla.2021-08-03.a.la.s.1.42.57.p.m.mov

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants