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_E.sh 1.0 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
  1. #!/usr/bin/env bash
  2. #
  3. # This script makes the documentation in Appendix E.
  4. #
  5. # Paul Wessel, v 1.1
  6. #
  7. xwidth=0.45 # Width of each box (all units are in inches)
  8. ywidth=0.45 # Height of each box
  9. w=0.9 # Width of two adjacent boxes
  10. dx=0.50 # Amont to translate to the right
  11. dy=0.50 # Amount to translate up
  12. y=0.05 # Initial offset in x
  13. x=0.05 # Initial offset in y
  14. back=-5.20 # Amount to translate to left after 1 row
  15. cat << END > tt.App_E.d
  16. 0 0
  17. $xwidth 0
  18. $xwidth $ywidth
  19. 0 $ywidth
  20. END
  21. gmt begin GMT_App_E
  22. gmt set GMT_THEME cookbook
  23. gmt basemap -R0/5.75/0/7.55 -Jx1i -B0
  24. gmt set MAP_FRAME_PEN thinner
  25. for iy in 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
  26. do
  27. for ix in 1 2 3 4 5 6
  28. do
  29. let p=iy*6+ix
  30. gmt plot -R0/$xwidth/0/$ywidth -Jx1i -Gp$p+r300 tt.App_E.d -X${x}i -Y${y}i -B0
  31. gmt plot -GP$p+r300 tt.App_E.d -X${xwidth}i -B0
  32. echo "0 0.225" | gmt plot -R0/$w/0/$ywidth -N -Sc0.17i -Wthinnest -Gwhite
  33. echo "0 0.225 $p" | gmt text -R0/$w/0/$ywidth -N -F+f9p,Helvetica-Bold
  34. y=0.0
  35. x=$dx
  36. done
  37. y=$dy
  38. x=$back
  39. done
  40. gmt end show
Tip!

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

Comments

Loading...