2D comet animated plot
comet(y) comet(x, y) comet(x, y, Lf) comet(x, fun) comet(x, fun, Lf) comet(..., "colors",c)
- a real vector or matrix. If omitted, it is assumed to be the vector
npis the total number of curve points (see below). As a matrix, each column defines the abscissae of the trace of a separate comet.
- a real vector or matrix. As a matrix, each column defines the ordinates
of the trace of a separate comet.
nc=size(y,"c")is the number of comets simultaneously drawn.
- a real scalar in the interval
[0,1[. Default value is 0.1: It defines the Leading fraction of the comet's trace. The
k=Lf*npmost recent points are plotted in thicker line.
- a scilab function with syntax
y = fun(x).
funcan also be a polynomial or a rational fraction.
nccolors of the
nccomets traces. They may be specified as a vector of
nccolor indices or color names or "#RRGGBB" hexadecimal color codes. Or by a matrix (ncx3) of
[r,g,b]vectors of Red-Green-Blue intensities in the [0,1] interval.
(x,y) are two vectors, this function draws a 2D comet animated
plot showing the progression of the curve
m varying from
The plot is made of three parts:
|a head||mark that shows the current |
|a body||consisting in the |
|a tail||that shows the |
comet(x,fun,...) is equivalent to
y are matrices with identical sizes,
then animated curves are drawn for each pair
In this case
np is the number of rows of
comet(...,"colors",c) can be used to set the colors of each
// One comet in spiral: t = linspace(0, 10*%pi, 500); clf, isoview comet(t.*sin(t), t.*cos(t), "colors", "orange")
// Two simultaneous comets with default colors: t = linspace(0, 10*%pi, 500)'; clf comet(t.*sin(t), [t.*sin(2*t) t.*sin(3*t)])
// Chosen colors: t = linspace(0, 10*%pi, 500)'; clf comet(t.*sin(t), [t.*cos(t) t.*sin(2*t)], "colors", ["orange" "mag"])
- comet3d — 3D comet animated plot
- paramfplot2d — animated plot of a 2D parametrized curve.
- realtime — sets the time unit
- colors names — list of named colors
|5.3.2||Function comet() introduced.|
|6.1.0||Colors can now be specified also by their name, or by their "#RRGGBB" hexadecimal code, or by their [r g b] Red-Green-Blue intensities.|
|Report an issue|
|<< champ properties||2d_plot||contour2d >>|