File: animate.dem

package info (click to toggle)
gnuplot 3.5beta6.340-5
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 4,792 kB
  • ctags: 4,205
  • sloc: ansic: 41,878; asm: 539; makefile: 498; objc: 379; csh: 297; sh: 277; pascal: 194; perl: 138; lisp: 88
file content (32 lines) | stat: -rw-r--r-- 818 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#
#	demo to rotate whale image
#	Where gnuplot.rot is a gnuplot command file containing something like
#
#	  zrot=(zrot+10)%360
#	  set view xrot,zrot
#	  replot
#	  reread
#
#	The 'reread' command causes the current gnu command file to be reset 
#	to its starting point before further commands are read from it.  Since
#	the 'reread' command is in 'gnuplot.rot', the above four commands are
#	repeated indefinitely, causing the image to rotate about the Z axis.
#
set parametric
set hidden3d
set nokey
set xrange [0:8]
set yrange [-4:4]
set zrange [-2:2]
set data style line
set title "Demo of animation capability - Digitized Blue Whale"
xrot=60
zrot=0
splot "whale.dat"
pause -1 "Under MS-DOS, a carriage return is needed to invoke reread"
load "gnuplot.rot"
set title ""
set autosc
set nohidden
set nopara
set key