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

fixed_labeldist.sh 3.3 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
  1. #!/usr/bin/env bash
  2. # Test a fixed label offset distance form all axes
  3. # Script from https://github.com/GenericMappingTools/gmt/issues/5182
  4. # The defaults MAP_LABEL_MODE = axis means the distance to the map label
  5. # will be measured relative to the axis, not the top of the annotations.
  6. #
  7. ps=fixed_labeldist.ps
  8. gmt set FONT_LABEL 10p MAP_LABEL_OFFSET 8p/32p MAP_LABEL_MODE annot/axis FONT_ANNOT_PRIMARY 8p
  9. plot_width=16c
  10. plot_height=2.5c
  11. xmin=6
  12. xmax=17
  13. ############## C4
  14. parameter="C4"
  15. ymin=0
  16. ymax=24.9
  17. ytick=10
  18. ysubtick=5
  19. axis_label="C@-4@- (%)"
  20. J_options="-JX${plot_width}/${plot_height}"
  21. R_options="-R${xmin}/${xmax}/${ymin}/${ymax}"
  22. gmt psbasemap -BWSEn -Bxa2f1+l"Age (Ma)" -Bya${ytick}f${ysubtick}+l"${axis_label}" ${J_options} ${R_options} -P -K > $ps
  23. ############## MC total
  24. parameter=MC_total
  25. ymin=80
  26. ymax=12000
  27. axis_label="MC@-T@-"
  28. J_options="-JX${plot_width}/${plot_height}l"
  29. R_options="-R${xmin}/${xmax}/${ymin}/${ymax}"
  30. gmt psbasemap -Y${plot_height} -BWsEn -Bya1f3p+l"${axis_label} (grain/g)" ${J_options} ${R_options} -P -K -O >> $ps
  31. ############## MC_L / MC_R
  32. parameter="Total_L_Total_R"
  33. ymin=0.01
  34. ymax=0.39
  35. ytick=0.1
  36. ysubtick=0.05
  37. axis_label="MC@-L@-/MC@-R@-"
  38. J_options="-JX${plot_width}/${plot_height}"
  39. R_options="-R${xmin}/${xmax}/${ymin}/${ymax}"
  40. gmt psbasemap -Y${plot_height} -BWsEn -Bya${ytick}f${ysubtick}+l"${axis_label}" ${J_options} ${R_options} -P -O -K >> $ps
  41. ############## Grasses Yanwan
  42. parameter="Yanwan_Grasses"
  43. ymin=0.1
  44. ymax=99.9
  45. ytick=20
  46. ysubtick=10
  47. axis_label="Grass (%)"
  48. J_options="-JX${plot_width}/${plot_height}"
  49. R_options="-R${xmin}/${xmax}/${ymin}/${ymax}"
  50. gmt psbasemap -Y${plot_height} -BWsEn -Bya${ytick}f${ysubtick}+l"${axis_label}" ${J_options} ${R_options} -P -O -K >> $ps
  51. ############## Grasses Yaodian
  52. parameter="Yaodian_Grasses"
  53. ymin=0.1
  54. ymax=99.9
  55. ytick=20
  56. ysubtick=10
  57. axis_label="Grass (%)"
  58. J_options="-JX${plot_width}/${plot_height}"
  59. R_options="-R${xmin}/${xmax}/${ymin}/${ymax}"
  60. gmt psbasemap -Y${plot_height} -BWsEn -Bya${ytick}f${ysubtick}+l"${axis_label}" ${J_options} ${R_options} -P -O -K >> $ps
  61. ############## Mammal fossils
  62. ymin=0
  63. ymax=2
  64. y_half=1
  65. ytick=1
  66. ysubtick=5
  67. axis_label="Fossils"
  68. parameter="mammal_fossils"
  69. J_options="-JX${plot_width}/${plot_height}"
  70. R_options="-R${xmin}/${xmax}/${ymin}/${ymax}"
  71. gmt psbasemap -Y${plot_height} -BWsEn -Bxa100 -By+l"${axis_label}" ${J_options} ${R_options} -P -K -O >> $ps
  72. ############## Mammal fossils
  73. ymin=2801
  74. ymax=4099
  75. y_half=1
  76. ytick=1
  77. ysubtick=5
  78. axis_label="MSH"
  79. parameter="MSH"
  80. J_options="-JX${plot_width}/${plot_height}"
  81. R_options="-R${xmin}/${xmax}/${ymin}/${ymax}"
  82. gmt psbasemap -Y${plot_height} -BWsEn -Bya400+200f100+l"${axis_label}" ${J_options} ${R_options} -P -K -O >> $ps
  83. ################## CO2
  84. parameter="CO2"
  85. ymin=50
  86. ymax=399
  87. ytick=100
  88. ysubtick=25
  89. axis_label="CO@-2@- (PPM)"
  90. J_options="-JX${plot_width}/${plot_height}"
  91. R_options="-R${xmin}/${xmax}/${ymin}/${ymax}"
  92. gmt psbasemap -Y${plot_height} -BWsEn -Bya${ytick}f${ysubtick}+l"${axis_label}" ${J_options} ${R_options} -P -O -K >> $ps
  93. ############ Tectonic
  94. ymin=0
  95. ymax=1
  96. y_half=1
  97. ytick=1
  98. ysubtick=5
  99. axis_label="Tectonics"
  100. parameter="tectonic_events"
  101. J_options="-JX${plot_width}/${plot_height}"
  102. R_options="-R${xmin}/${xmax}/${ymin}/${ymax}"
  103. gmt psbasemap -Y${plot_height} -BWsEn -Bxa100 -By+l"${axis_label}" ${J_options} ${R_options} -P -O >> $ps
Tip!

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

Comments

Loading...