plotly / plotly/plotly_matlab

comet() not working correctly

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

@harshpurwar is already working on this.

Since Sep 5, 2021.

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

Description

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:

https://user-images.githubusercontent.com/87881895/128070067-0727a430-4916-44e4-954b-ba33b575b6bc.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

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.