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_App_G.sh 1018 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
  1. #!/usr/bin/env bash
  2. #
  3. # Makes the inset for Appendix G (fonts)
  4. #
  5. # dy is line spacing and y0 is total box height
  6. dy=-0.2222
  7. y0=4.3
  8. yy=4.0778
  9. tr '",' ' ' < "${GMT_SOURCE_DIR}"/src/standard_adobe_fonts.h | awk '{print $2}' > tt.d
  10. gmt begin GMT_App_G
  11. gmt set MAP_FRAME_PEN thinner
  12. gmt plot -R0/5.4/0/$y0 -Jx1i -B0 <<EOF
  13. >
  14. 0.3 0
  15. 0.3 $y0
  16. >
  17. 2.7 0
  18. 2.7 $y0
  19. >
  20. 3 0
  21. 3 $y0
  22. EOF
  23. gmt text -Y${yy}i -F+f10p+jBC <<EOF
  24. 0.15 0.05 \\043
  25. 1.55 0.05 Font Name
  26. 2.85 0.05 \\043
  27. 4.15 0.05 Font Name
  28. EOF
  29. gmt plot <<EOF
  30. 0 0
  31. 5.4 0
  32. EOF
  33. let i=1
  34. while [ $i -le 17 ]
  35. do
  36. i1=$(( i-1 ))
  37. i2=$(( i1+17 ))
  38. k1=$i
  39. k2=$(( i+17 ))
  40. f1=$(sed -n ${k1}p tt.d)
  41. f2=$(sed -n ${k2}p tt.d)
  42. if [ $i1 -eq "12" ]; then
  43. f1="Symbol @%0%(Symbol)@%%"
  44. fi
  45. fn2=$i2
  46. gmt text -Y${dy}i -F+f+j <<EOF
  47. 0.15 0.03 10p,$i1 BC $i1
  48. 0.4 0.03 10p,$i1 BL $f1
  49. 2.85 0.03 10p,$fn2 BC $i2
  50. 3.1 0.03 10p,$i2 BL $f2
  51. EOF
  52. let i=i+1
  53. done
  54. gmt text -Y${dy}i -F+f+j <<EOF
  55. 2.85 0.03 10p,Helvetica BC 34
  56. 3.1 0.03 10p,ZapfDingbats BL ZapfDingbats @%0%(ZapfDingbats)@%%
  57. EOF
  58. gmt end show
Tip!

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

Comments

Loading...