2 # $Id: world.dem,v 1.9 2004/09/28 06:06:10 sfeam Exp $
5 set title "Gnuplot Correspondences"
12 # plot world map and correspondent locations as a +
13 plot 'world.dat' with lines lt 3 , 'world.cor' with points lt 1 pt 2
20 pause -1 "Hit return to continue"
22 # plot a '3D version using spherical coordinate system' of the world.
24 set title "3D version using spherical coordinate system"
26 set view 70,40,0.8,1.2
33 splot cos(u)*cos(v),cos(u)*sin(v),sin(u) with lines lt 5 ,\
34 'world.dat' with lines lt 3 , 'world.cor' with points lt 1 pt 2
35 pause -1 "Hit return to continue"
37 # HBB 20000715: new demo:
38 # same plot, but with hidden3d active, plus axes through the
40 set title "3D solid version through hiddenlining"
42 set arrow from 0,0,-1.2 to 0,0,1.2 lt 5 lw 2
43 set arrow from -1.2, 0, 0 to 1.2, 0, 0 nohead lt 5 lw 1
44 set arrow from 0, -1.2, 0 to 0, 1.2, 0 nohead lt 5 lw 1
45 splot cos(u)*cos(v),-cos(u)*sin(v),sin(u) with lines lt 5 ,\
46 'world.dat' u 1:2:(1.001) with lines lt 3 , 'world.cor' with points lt 1 pt 2
47 pause -1 "Hit return to continue"
53 # plot a '3D version using cylindrical coordinate system' of the world.
54 set title "3D version using cylindrical coordinate system"
56 set view 70,40,0.8,1.2
57 set mapping cylindrical
63 splot cos(u),sin(u),v with lines lt 5 ,\
64 'world.dat' with lines lt 3 , 'world.cor' with points lt 1 pt 2
65 pause -1 "Hit return to continue"