Skip to content

comet

plot · scripts/plot/draw/comet.m

: comet (y)
: comet (x, y)
: comet (x, y, p)
: comet (ax, …)

Animate a two-dimensional trajectory with a moving head and a tail.

The curve (x, y) is traced point by point: the head is marked with a circle and the tail covers the fraction p (default 0.1) of the points. When the animation has finished the complete curve is left in the axes. If the figure is not visible the frames are not displayed.