displaya variable. grads will return an animation sequence. By default, the animation dimension is time, but you may specify a different dimension to animate by using the following command:
If you wish to animate a variable with fewer than three varying dimensions (i.e., animate a line graph), you can control animation by entering:
Remember to grads/gadoc/gradcomdsetlooping.html">
off when you are done animating, or you
will get a surprise when you display your next expression!
When you issue a display command after turning on double buffering,
the image is drawn to the backgound buffer. Then you issue the
swap command, and grads swaps the background and foreground buffers so you can
see what you've displayed.
swap works like
clear in that it
resets many graphics options.
Here is a sample script demonstrating how to use double buffering:
'open model.ctl''set dbuff on''set gxout shaded't = 1 while (t <= 5)'draw title Temperature''set t 't 'd t' 'cbarn'endwhile'swap't = t + 1