plotly_matlab icon indicating copy to clipboard operation
plotly_matlab copied to clipboard

comet3() not working correctly

Open xarico10 opened this issue 5 years ago • 0 comments

When using comet3() to displays a comet plot of the data specified in z versus x- and y-values matching the indices of z(a comet is an animation of a marker (head) and a line (tail) tracing a growing line over the data points), a single-point 3-D scatter chart is being printed.

[xmat,ymat,zmat] = peaks(100); 
xvec = xmat(:);
yvec = ymat(:);
zvec = zmat(:);
comet3(xvec,yvec,zvec)

fig2plotly(gcf, 'offline', false);

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

https://user-images.githubusercontent.com/87881895/128070750-0a71ad95-2f0a-4e5e-8db6-6ebc54f22650.mov

Captura de Pantalla 2021-08-03 a la(s) 1 57 26 p  m

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

xarico10 avatar Aug 03 '21 18:08 xarico10