Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

GMT_arrows.sh 874 B

You have to be logged in to leave a comment. Sign In
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
  1. #!/usr/bin/env bash
  2. #
  3. # Demonstrate how arrows look like
  4. gmt begin GMT_arrows
  5. # Cartesian straight arrows
  6. gmt plot -R0/5/0/5 -JX1.75i -S -W1.5p -Gred -B0 --MAP_VECTOR_SHAPE=0.5 << EOF
  7. 0.5 0.5 4.5 0.5 v0.2i+s
  8. 0.5 1.5 4.5 1.5 v0.2i+s+e
  9. 0.5 2.5 4.5 2.5 v0.2i+s+b+er
  10. 0.5 3.5 4.5 3.5 v0.2i+s+b+e
  11. 0.5 4.5 4.5 4.5 v0.2i+s+el
  12. EOF
  13. # Circular arrows
  14. gmt plot -S -W1.5p -Gred -B0 --MAP_VECTOR_SHAPE=0.5 -X2i << EOF
  15. 0.5 0.5 1.5 0 90 m0.2i
  16. 0.5 0.5 1.3 0 90 m0.2i+e
  17. 0.5 0.5 1.1 0 90 m0.2i+b
  18. 0.5 0.5 0.9 0 90 m0.2i+b+el
  19. 0.5 0.5 0.7 0 90 m0.2i+r+e
  20. 0.5 0.5 0.3 0 90 M0.2i+r+e
  21. EOF
  22. # Geo arrows
  23. 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
  24. 10 0 90 8000 =0.2i
  25. 10 13 90 8000 =0.2i+e
  26. 10 -13 90 8000 =0.2i+b
  27. 10 25 90 8000 =0.2i+b+e
  28. 10 -25 90 8000 =0.2i+b+er
  29. 10 35 90 8000 =0.2i+r+b
  30. 10 -35 90 8000 =0.2i+bl
  31. EOF
  32. gmt end show
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...