# pstext ( to write text) # pstext requires an input file which is in the format # "x, y, fontsize, font angle, font type, justification, text" # Use echo command to do this. ################################################################## gmt psbasemap -P -JX10 -R0/100/0/100 -B10/10WS -K > fig.ps # text to east (0 degree) # Note that echo is not a gmt command. Hence it does not need the 'gmt' in the beginning. echo "50 110 14 0 1 6 Text1" > junk gmt pstext junk -J -R -B -N -O -K >> fig.ps # text to north (90 degree) echo "50 100 14 90 1 6 Text2" > junk gmt pstext junk -J -R -B -N -O -K >> fig.ps # text to left (180 degree) echo "50 60 14 180 1 6 Text3" > junk gmt pstext junk -J -R -B -N -O >> fig.ps