animating a zoom process (21.9.99)

Richard Pulskamp

We cannot achieve a desired effect in an animation. Does anyone have a workaround? We are running Release 5.1. An example of the code used follows.

The particular difficulties are described later.

Here is an animation we want to use in Calculus I to mimic repeated zooming in on the graph of a function together with its tangent line:


The above animation does show the frames which create the ”zooming- in-effect” we want, but we do not get the desired effect because Maple does not enlarge the individual frames. In other words, it would appear that the graph dimensions cannot be dynamically resized.

DIFFICULTY I :We would like to produce an animation of the following pictures (exactly as shown) in an animation where the scale on the axes changes (i.e. new scales on both axes from frame to frame).

> display(%);

The Plot[Structure] option "FRAMESCALING" seems to have been designed to do this job. Experimentation with this option showed that this option is not functioning properly, as the following example should demonstrates:


DIFFICULTY 2: Since we would like to post these animations for our students, we want to preset the frame-rate, i.e. the number of FRAMES PER SECOND in the animation command rather than this having to be done by the viewer. How can this be done?

This does not seem to be an option.

Rexford Cordill (29.10.99)

Zooming in on a 2D or 3D plot in MapleV is a feature that should be well documented, but to my knowledge it isn’t. I found a very good solution in the DEtools[zoom] command. The MapleV help page on DEtools[zoom] is very good and you shouldn’t have any trouble implementing it. Just implement this command in your ’for’ loop followed by

plots[display]([seq(plot1[j],j=1..5)],insequence=true);

You can fake varying the frame rate by merely duplicating plot structures in the list of plot structures passed to plots[display]. For example:

Instead of

plots[display]([plot1[1],plot1[2],plot1[3],plot1[4]],insequence=true);

You could write

plots[display]([plot1[1],plot1[1],plot1[2],plot1[2],plot1[3],plot1[3],plot1[4],plot1[4]], 
                insequence=true);

Duplicating the plots in the list would appear to halve the frame rate. Note that this basic technique could be used to display part of the animation at a different rate than other parts.

Bernd Rossa (29.10.99)

A few days ago you were kind to respond to a message which my colleague Dick Pulskamp had forwarded to MUG concerning the animation of a zooming process in Maple V release 5.1.

You pointed out that DEtools contains the zoom-command, which is, of course, true. This command seems to have been designed for enlarging a segment of a plot structure without having Maple recalculate the structure (from scratch).

This command speeds up the process of seeting up the frames needed to produce the desired ”zooming movie”.

However, as before (when I constructed the frames without the zoom command) my problem occurs when I want to display the frames "insequence=true".

In the animation, Maple refuses to adjust the scale on the window! Instead, the portion of the graph shrinks inside of the largest (first) window, rather than the scales on the window changing which would create the desired zooming (i.e. cranking up a microscope) effect.

Please look at the following example (which uses ”zoom”):

> with(plots):with(DEtools):

Define a function:

> f:=x->x^3+2*x-1:

Define a plot-structure to zoom in on:


Define the frames which zoom in on (1,2):


Finally display the frames ”insequence=true”:


Notice that the portion of the graph shrinks. No zooming effect! But if you look at each frame separately, the zooming occurred. Maple does not change the scale on the individual windows. That’s my problem. Any further ideas? (Am I being stupid?) :-).

Robert Israel (3.11.99)

| DIFFICULTY I :We would like to produce an animation ...

You might try something like this: