animatedline() not supported

Offen
#276 0 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@harshpurwar arbeitet bereits daran.

Seit 05.9.2021.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

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

Vorherrschende Sprache
MATLAB
Sterne
413
Forks
166
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus plotly/plotly_matlab

Alle Issues in plotly/plotly_matlab

Ähnliche Issues

Weitere Issues zu MATLAB

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.