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_M_2.sh 1.4 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
  1. #!/usr/bin/env bash
  2. gmt begin GMT_App_M_2
  3. gmt set FONT_ANNOT_PRIMARY 10p PROJ_LENGTH_UNIT cm PS_MEDIA 11ix8.5i
  4. # Set up color palette with named annotations
  5. cat > ages.cpt <<END
  6. #COLOR_MODEL = RGB
  7. #
  8. 0 197 0 255 23 197 0 255 ;Neogene
  9. 23 81 0 255 66 81 0 255 ;Paleogene
  10. 66 0 35 255 146 0 35 255 ;Cretaceous
  11. 146 0 151 255 200 0 151 255 ;Jurassic
  12. 200 0 255 244 251 0 255 244 ;Triassic
  13. 251 0 255 127 299 0 255 127 ;Permian
  14. 299 0 255 11 359 0 255 11 ;Carboniferous
  15. 359 104 255 0 416 104 255 0 ;Devonian
  16. 416 220 255 0 444 220 255 0 ;Silurian
  17. 444 255 174 0 488 255 174 0 ;Ordovician
  18. 488 255 58 0 542 255 58 0 ;Cambrian
  19. B black
  20. F white
  21. END
  22. # Top row, left to right. Using names.
  23. gmt colorbar -Cages.cpt -Dx00/13+w-8/0.5+jML+ef
  24. gmt colorbar -Cages.cpt -Dx04/13+w-8/0.5+jML+ef -L
  25. gmt colorbar -Cages.cpt -Dx08/13+w-8/0.5+jML+ef -L0.0
  26. gmt colorbar -Cages.cpt -Dx12/13+w-8/0.5+jML+ef -L0.1
  27. gmt colorbar -Cages.cpt -Dx16/13+w08/0.5+jML+ef -L
  28. gmt colorbar -Cages.cpt -Dx20/13+w08/0.5+jML+ef -L0.1
  29. # Bottom row, left to right. Using numbers.
  30. sed 's/;.*$//' ages.cpt > years.cpt
  31. gmt colorbar -Cyears.cpt -Dx00/04+w08/0.5+jML+ef
  32. gmt colorbar -Cyears.cpt -Dx04/04+w-8/0.5+jML+ef -L
  33. gmt colorbar -Cyears.cpt -Dx08/04+w-8/0.5+jML+ef -L0.0
  34. gmt colorbar -Cyears.cpt -Dx12/04+w-8/0.5+jML+ef -L0.1
  35. gmt colorbar -Cyears.cpt -Dx16/04+w-8/0.5+jML+ef -Li
  36. gmt colorbar -Cyears.cpt -Dx20/04+w-8/0.5+jML+ef -Li0.1
  37. gmt end show
Tip!

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

Comments

Loading...