plotly / plotly/plotly_matlab

animatedline() not supported

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

@harshpurwar arbeitet bereits daran.

Seit 05.9.2021.

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

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

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