File: GMT_arrows.sh

package info (click to toggle)
gmt 6.4.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 107,344 kB
  • sloc: ansic: 272,264; sh: 8,955; fortran: 49; makefile: 44; perl: 32; csh: 9
file content (33 lines) | stat: -rwxr-xr-x 901 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/env bash
#
# Demonstrate how arrows look like
gmt begin GMT_arrows
gmt set GMT_THEME cookbook
# Cartesian straight arrows
	gmt plot -R0/5/0/5 -JX1.75i -S -W1.5p -Gred -B0 --MAP_VECTOR_SHAPE=0.5 << EOF
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 plot -S -W1.5p -Gred -B0 --MAP_VECTOR_SHAPE=0.5 -X2i << EOF
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 plot -R0/90/-41.17/41.17 -JM1.75i -S -W1.5p -Gred -B0 --MAP_VECTOR_SHAPE=0.5 -X2i --MAP_FRAME_TYPE=plain << EOF
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 end show