animatedline() not supported

Aperta
#276 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@harshpurwar ci sta già lavorando.

Dal 5/9/2021.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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

Lingua principale
MATLAB
Stelle
413
Fork
166
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di plotly/plotly_matlab

Tutte le issue di plotly/plotly_matlab

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.