comet(y)
comet(x, y)
comet(x, y, p)
comet(ax, x, y, p)
| Parameter | Description |
|---|---|
| x, y | numeric vectors with the same number of elements. |
| p | body length scale factor in the interval [0, 1). |
| ax | target axes. |
comet animates a marker head, a trailing body, and a complete trace for a two-dimensional comet plot.
The final axes state contains two animated line objects and one marker-only line object.
t = 0:pi/80:2*pi;
comet(cos(t), sin(t), 0.2)
| Version | Description |
|---|---|
| 2.0.0 | initial version |