Initial release of Maemo 5 port of gnuplot
[gnuplot] / demo / world.dem
1 #
2 # $Id: world.dem,v 1.9 2004/09/28 06:06:10 sfeam Exp $
3 #
4 #
5 set title "Gnuplot Correspondences"
6 unset key
7 unset border
8 unset yzeroaxis
9 unset xtics
10 unset ytics
11 #
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
14 set title ""
15 set key on
16 set border
17 set yzeroaxis
18 set xtics
19 set ytics
20 pause -1 "Hit return to continue"
21 #
22 # plot a '3D version using spherical coordinate system' of the world.
23 set angles degrees
24 set title "3D version using spherical coordinate system"
25 set ticslevel 0
26 set view 70,40,0.8,1.2
27 set mapping spherical
28 set parametric
29 set samples 32
30 set isosamples 9
31 set urange [-90:90]
32 set vrange [0:360]
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"
36
37 # HBB 20000715: new demo:
38 # same plot, but with hidden3d active, plus axes through the
39 # poles:
40 set title "3D solid version through hiddenlining"
41 set hidden3d
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"
48
49 unset arrow
50 unset hidden
51
52 #
53 # plot a '3D version using cylindrical coordinate system' of the world.
54 set title "3D version using cylindrical coordinate system"
55 set ticslevel 0.0
56 set view 70,40,0.8,1.2
57 set mapping cylindrical
58 set parametric
59 set samples 32
60 set isosamples 9
61 set urange [-180:180]
62 set vrange [-90:90]
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"
66 reset