#!/bin/csh ### Example A6: ## For detailed explanations, see previous examples or use ## man gmt_command (e.g., pscoast) ##### Step 1: remove the file with the same name as the output file /bin/rm tmp.ps ##### Step 2: plot the coastlines and political boundaries pscoast -R-125/-70/30/50 -JM6 \ -W3 -A1000 -P -S150/250/200 -Ba10f5 -Dl -Na/1 -X1.5 -Y3 -K >tmp.ps ##### Step 3: Plot the red lines (great circle arcs) awk '{print $1, $2}' mypath.data | \ psxy -R -M -W8/255/0/0 -JM -O -K >>tmp.ps ##### Step 4: Put blue circles at the ends awk '{print $1, $2}' mypath.data | \ psxy -R -JM -O -K -Sc0.1 -G0/0/255 >>tmp.ps ##### Step 5: Write the texts in the 3rd column of mypath.data at the # location 1 degree above the circles awk '{print $1, $2+1.0,"15 0 0 6",$3}' mypath.data | \ pstext -R -JM -O -K -G255/0/0 >>tmp.ps ###### Step 6: Write the texts in the 4th column 1 degree below the circles awk '{print $1, $2-1.0,"14 0 0 6",$4}' mypath.data | \ pstext -R -JM -O -K -G150/0/250 >>tmp.ps ###### Step 7: Add titles etc. pstext -R -N -JM -O <>tmp.ps -97.5 53 19 0 1 6 Steve Gao's Paths of Migration Since 1989 -97.5 51 15 0 5 6 Order: UCLA - CIW - ASU -KSU - MST END ps2jpeg150 tmp.ps