Re: Problem animating MuPAD data plots



Richard Kanarek wrote:

> While producing animated plots of functions has been a tractable
> problem, all of my attempts at producing an animating a plot of data
> points have thus far failed. Is MuPAD (3.1.1) capable of producing an
> animated plot of data points? Anyone care to demonstrate the creation
> of a short list of coordinates, and then demonstrate plotting them?
> (Feel free to be brief; I can extrapolate.) Any sage advice?

What you are looking for is the attribute VisibleFromTo which defines
the time range of visibility of objects. See chapter '10.6. Frame by
Frame Animations' of the introduction of the plot document for details.

r := random(1..99):
// I sort the random points to keep my animation smooth
// I think your input data aready is smooth
xpos := sort([r() $ i=1..99]);
ypos := sort([r() $ i=1..99]);

plot(plot::Point2d([xpos[a], ypos[a]],
VisibleFromTo=a/4..(a+1)/4) $ a = 1..99)

The above animation cycles through your point data in 25 seconds.

--
*---* MuPAD -- The Open Computer Algebra System
*---*|
|*--|* Ralf Hillebrand (tonner@xxxxxxxx)
*---*
.