2 # $Id: animate2.dem,v 1.1 2006/01/07 23:21:02 sfeam Exp $
4 # demo for creating GIF animation and illustrating saving images to
5 # file one pixel to one pixel
7 # A combination of what was animate.dem and world2.dem with the
8 # addition of saving the rotated image to an animated GIF.
9 # Requires GIF_ANIMATION
12 # - 1. 3. 2006 Dan Sebald: 1st version
13 # 07 Jan 2006 Ethan Merritt: Revise to assume terminal type is set by caller
16 # Caller must set terminal type.
17 # Example of intended use:
18 # set term gif animate transparent opt delay 10 size 200,200 x000000
33 set urange [ -90.0000 : 90.0000 ] noreverse nowriteback
34 set vrange [ 0.00000 : 360.000 ] noreverse nowriteback
37 # Defines for gnuplot.rot script
45 set view xview(xrot), zview(zrot), 2, 1
48 splot cos(u)*cos(v),cos(u)*sin(v),sin(u) notitle with lines lt 5, \
49 'world.dat' notitle with lines lt 2 lw 3
52 xrot =(xrot+xrot_delta)%360
53 zrot =(zrot+zrot_delta)%360
57 pause -1 "Hit return to continue"
61 print "End of animate2 demo..."