2 # Read individual point sizes from extra column of input file
3 # Ethan A Merritt - October 2004
13 # plot a 2D map with locations marked by variable sized points
15 set title "plot with variable size points"
16 plot 'world.dat' with lines lt 3, \
17 'world.cor' using 1:2:(5.*rand(0)) with points lt 1 pt 6 ps variable
18 pause -1 "Hit return to continue"
21 set title "splot with variable size points\nit is possible to specify size and color separately"
24 splot 'world.dat' using 1:2:(0) with lines lt 3, \
25 'world.cor' using 1:2:(0.5-rand(0)):(5.*rand(0)) with points pt 5 ps var lt palette
26 pause -1 "Hit return to continue"
29 # plot a '3D version using spherical coordinate system' of the world.
31 set title "3D version using spherical coordinate system"
33 set view 70,40,0.8,1.2
40 splot cos(u)*cos(v),cos(u)*sin(v),sin(u) with lines lt 5,\
41 'world.dat' with lines lt 3, \
42 'world.cor' using 1:2:(1):(5.*rand(0)) with points lt 1 pt 6 ps variable
43 pause -1 "Hit return to continue"
46 # hidden3d still not working fully
47 # pointsize is now handled, but axes are never obscured
49 set title "3D solid version through hiddenlining"
51 set arrow from 0,0,-1.2 to 0,0,1.2 lt 5 lw 2
52 set arrow from -1.2, 0, 0 to 1.2, 0, 0 nohead lt 5 lw 1
53 set arrow from 0, -1.2, 0 to 0, 1.2, 0 nohead lt 5 lw 1
54 splot cos(u)*cos(v),-cos(u)*sin(v),sin(u) with lines lt 5,\
55 'world.dat' u 1:2:(1.001) with lines lt 3, \
56 'world.cor' using 1:2:(1):(5.*rand(0)) with points lt 1 pt 6 ps var
57 pause -1 "Hit return to continue"