plotly / plotly/plotly_matlab

comet3() not working correctly

Open
#278 0 comments 0 reactions 1 assignee View on GitHub

@harshpurwar is already working on this.

Since Oct 16, 2021.

Dominant language
MATLAB
Stars
413
Forks
166
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.