1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
#!/bin/bash
# $Id: GMT_arrows.sh 13579 2014-10-02 20:35:47Z pwessel $
#
# Demonstrate how arrows look like
ps=GMT_arrows.ps
# Cartesian straight arrows
gmt psxy -R0/5/0/5 -JX1.75i -P -S -W1.5p -Gred -K -B0 --MAP_VECTOR_SHAPE=0.5 << EOF > $ps
0.5 0.5 4.5 0.5 v0.2i+s
0.5 1.5 4.5 1.5 v0.2i+s+e
0.5 2.5 4.5 2.5 v0.2i+s+b+er
0.5 3.5 4.5 3.5 v0.2i+s+b+e
0.5 4.5 4.5 4.5 v0.2i+s+el
EOF
# Circular arrows
gmt psxy -R -J -S -W1.5p -Gred -O -K -B0 --MAP_VECTOR_SHAPE=0.5 -X2i << EOF >> $ps
0.5 0.5 1.5 0 90 m0.2i
0.5 0.5 1.3 0 90 m0.2i+e
0.5 0.5 1.1 0 90 m0.2i+b
0.5 0.5 0.9 0 90 m0.2i+b+el
0.5 0.5 0.7 0 90 m0.2i+r+e
0.5 0.5 0.3 0 90 M0.2i+r+e
EOF
# Geo arrows
gmt psxy -R0/90/-41.17/41.17 -JM1.75i -S -W1.5p -Gred -O -K -B0 --MAP_VECTOR_SHAPE=0.5 -X2i --MAP_FRAME_TYPE=plain << EOF >> $ps
10 0 90 8000 =0.2i
10 13 90 8000 =0.2i+e
10 -13 90 8000 =0.2i+b
10 25 90 8000 =0.2i+b+e
10 -25 90 8000 =0.2i+b+er
10 35 90 8000 =0.2i+r+b
10 -35 90 8000 =0.2i+bl
EOF
gmt psxy -R -J -O -T >> $ps
|