2 # $Id: animate.dem,v 1.7 2006/01/07 23:21:02 sfeam Exp $
4 # Demo animation, tumbling around 'glass.dat'.
7 # - 1. 1. 2006 Dan Sebald: Defined variables for more generic rotate
8 # - ?. ?. ? Hans-Bernhard Broeker: Changed from rotating whale to
10 # - ?. ?. ? ?: Initial tumbling whale demo
20 xview(xrot)=(50.+30.*sin((xrot%180)/180.*pi))
21 zview(zrot)=(60.+45.*sin(zrot/180.*pi))
22 set view xview(xrot),zview(zrot)
25 limit_iterations=40 # limits number of iterations if nonzero
27 if (!limit_iterations) print "The following animation will never stop on its own. You have"
28 if (!limit_iterations) print "to stop it manually by interrupting gnuplot (e.g., press ^C)"
29 print "On some screen terminal drivers for PC screens, you'll have"
30 print "to hit a key to get to the next frame"
32 pause -1 "Press a key to start the rotation..."