GMT example - 1-D Velocity Model

#Draw Box
psbasemap -R0/8/-1/41 -Jx0.15/-0.15 -B2g2:"Velocity (km/s)":/a2g2:"Distance (km)"::."":SwnE -K > 1dmod.ps

#Draw 1-D velocity model
psxy -: -R -Jx -W6/0/0/0 -O <> 1dmod.ps
0.0 1.7
1.5 1.7
1.5 2.0
3.0 2.0
3.0 3.0
5.0 3.0
5.0 4.0
7.0 4.0
7.0 4.5
10.0 4.5
10.0 5.0
13.0 5.0
13.0 5.3
15.0 5.3
15.0 5.5
17.0 5.5
17.0 5.7
20.0 5.7
20.0 6.0
30.0 6.0
30.0 6.5
40.0 6.5
40.0 6.0
END

# Start ghostview
ghostview 1dmod.ps

rm -i 1dmod.ps