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

matharc.sh 1.1 KB

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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
  1. #!/usr/bin/env bash
  2. #
  3. # Check vector symbols
  4. ps=matharc.ps
  5. gmt psbasemap -R0/6/0/3 -Jx1i -P -B1g1 -BWSne -K -Xc > $ps
  6. gmt set MAP_VECTOR_SHAPE 1
  7. # Math angle vectors
  8. gmt psxy -R -J -O -K -W1p -Gred -S << EOF >> $ps
  9. 0 0 1i 30 80 m0.2i
  10. 1 0 1i 30 80 m0.2i+b
  11. 2 0 1i 30 80 m0.2i+e+p-
  12. 3 0 1i 30 80 m0.2i+b+e+gorange
  13. 4 0 1i 30 80 m0.2i+b+l+p0.5p,blue
  14. 5 0 1i 30 80 m0.2i+e+r
  15. EOF
  16. # Right angles
  17. gmt psxy -R -J -O -K -W1p -Gred -S << EOF >> $ps
  18. 0.5 1.5 0.5i 0 90 M0.2i
  19. 1.5 1.5 0.5i 60 150 M0.2i+b
  20. 2.5 1.5 0.5i 120 210 M0.2i+e
  21. 3.5 1.5 0.5i 180 270 M0.2i+b+e
  22. 4.5 1.5 0.5i 240 330 M0.2i+b+l
  23. 5.5 1.5 0.5i 300 390 M0.2i+e+r
  24. EOF
  25. # Math angle vectors unfilled
  26. gmt psxy -R -J -O -K -W1p -S << EOF >> $ps
  27. 0 2 1i 30 80 m0.2i
  28. 1 2 1i 30 80 m0.2i+b
  29. 2 2 1i 30 80 m0.2i+e
  30. 3 2 1i 30 80 m0.2i+b+e
  31. 4 2 1i 30 80 m0.2i+b+l
  32. 5 2 1i 30 80 m0.2i+e+r
  33. EOF
  34. # Normalized by angle below
  35. gmt psbasemap -R0/4/0/4 -J -O -B1g1 -BWSne -K -X1i -Y4i >> $ps
  36. gmt psxy -R -J -O -W1p -Gblack -Sm0.3i+b+e+n90 << EOF >> $ps
  37. 0 0 4.0i 0 90
  38. 0 0 3.6i 0 80
  39. 0 0 3.2i 0 70
  40. 0 0 2.8i 0 60
  41. 0 0 2.4i 0 50
  42. 0 0 2.0i 0 40
  43. 0 0 1.8i 0 35
  44. 0 0 1.6i 0 30
  45. 0 0 1.4i 0 25
  46. 0 0 1.2i 0 20
  47. 0 0 1.0i 0 15
  48. 0 0 0.8i 0 10
  49. EOF
Tip!

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

Comments

Loading...