Skip to content

comet() not working correctly #277

Open
@xarico10

Description

@xarico10

When using comet() to display a comet plot of the data specified in y versus the index of each value (a comet is an animation of a marker (head) and a line (tail) tracing a growing line over the data points) a single-point scatter plot is printed.

t = 0:pi/100:2*pi;
y = sin(t);
x = cos(t);
comet(x,y)

fig2plotly(gcf, 'offline', false);

Expected animation and generated (https://chart-studio.plotly.com/~xarico10/837/#plot) plot:

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

Captura de Pantalla 2021-08-03 a la(s) 1 51 56 p  m

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions