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

explain_-B_full.rst_ 9.9 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
  1. .. _-B_full:
  2. **-B**\ [**p**\|\ **s**]\ *parameters*
  3. Set map Frame and Axes parameters. The Frame parameters are specified by
  4. **-B**\ [*axes*][**+b**][**+g**\ *fill*][**+i**\ [*val*]][**+n**][**+o**\ *lon/lat*][**+t**\ *title*]
  5. where *axes* selects which axes to plot. By default, all 4 map boundaries
  6. (or plot axes) are plotted (named **W**, **E**, **S**, **N**). To customize,
  7. append the codes for those you want (e.g., **WSn**). Upper case means plot
  8. and annotate while lower case just plots and ticks the specified axes.
  9. To *just* draw an axis without annotation and ticks you can use the **l**\ (eft),
  10. **r**\ (ight), **b**\ (ottom), **t**\ (opt) and (for 3-D) **u**\ (p) codes. If a 3-D basemap
  11. is selected with **-p** and **-Jz**, append **Z**, **z**, or **u** to control the
  12. appearance of the vertical axis. By default a single vertical axes will be
  13. plotted at the most suitable map corner. Override the default by appending
  14. any combination of corner ids **1234**, where **1** represents the lower left
  15. corner and the order goes counter-clockwise. Append **+b** to draw the outline of the 3-D
  16. cube defined by **-R**; this modifier is also needed to display gridlines in
  17. the x-z, y-z planes. Note that for 3-D views the title, if given, will be
  18. suppressed. You can paint the interior of the canvas with **+g**\ *fill*.
  19. Use **+i** to annotate an internal meridian or parallel when the axis that normally
  20. would be drawn and annotated does not exist (e.g., azimuthal map with 360-degree range
  21. has no latitude axis, and a global Hammer map has no longitude axis); optionally append the parallel or meridian [0].
  22. Append **+n** to have no frame and annotations at all [Default is controlled by the codes].
  23. Optionally append **+o**\ *plon/plat* to draw oblique gridlines about
  24. specified pole [regular gridlines]. Ignored if gridlines are not
  25. requested (below) and disallowed for the oblique Mercator projection.
  26. To add a plot title, append **+t**\ *title*. The Frame setting is optional but
  27. can be invoked once to override the above defaults.
  28. The Axes parameters are specified by
  29. **-B**\ [**p**\|\ **s**][**x**\|\ **y**\|\ **z**]\ *intervals*\ [**+a**\ *angle*\|\ **n**\|\ **p**][**+f**][**+l**\|\ **L**\ *label*][**+p**\ *prefix*][**+s**\|\ **S**\ *seclabel*][**+u**\ *unit*]
  30. but you may also split this into two separate invocations for clarity, i.e.,
  31. - **-B**\ [**p**\|\ **s**][**x**\|\ **y**\|\ **z**][**+a**\ *angle*\|\ **n**\|\ **p**][**+f**][**+l**\|\ **L**\ *label*][**+p**\ *prefix*][**+s**\|\ **S**\ *seclabel*][**+u**\ *unit*]
  32. - **-B**\ [**p**\|\ **s**][**x**\|\ **y**\|\ **z**]\ *intervals*
  33. The first optional flag following **-B** selects **p** (rimary) [Default] or
  34. **s** (econdary) axes information (mostly used for time axes annotations but
  35. available for geographic axes as well. **Note**: primary refers to annotations
  36. closest to the axis and secondary to annotations further away. Hence, primary
  37. annotation-, tick-, and gridline-intervals must be shorter than their secondary counterparts).
  38. The [**x**\|\ **y**\|\ **z**] flags specify which axes you are providing information for.
  39. If none are given then we default to **xy**. If you wish to give different annotation intervals
  40. or labels for the various axes then you must repeat the **B** option for
  41. each axis (If a 3-D basemap is selected with **-p** and **-Jz**, use **-Bz**
  42. to give settings for the vertical axis.). To add a label to an axis,
  43. just append **+l**\ *label* (Cartesian projections only). Use **+L** (or **+S**) to
  44. force a horizontal label for *y*-axes (useful for very short labels).
  45. For Cartesian axes you may specify an alternate via **+s** which is used for
  46. right or upper axis axis label (with any **+l** label used for left and bottom axes).
  47. If the axis annotation should have a leading text prefix (e.g., dollar sign for those
  48. plots of your net worth) you can append **+p**\ *prefix*. For geographic maps
  49. the addition of degree symbols, etc. is automatic (and controlled by the GMT
  50. default setting :term:`FORMAT_GEO_MAP`). However, for other plots you can add
  51. specific units by adding **+u**\ *unit*. If any of these text strings contain
  52. spaces or special characters you will need to enclose them in quotes.
  53. Cartesian x-axes also allow for the optional **+a**\ *angle*, which
  54. will plot slanted annotations; *angle* is measured with respect to the horizontal
  55. and must be in the -90 <= *angle* <= 90 range only. Also, **+an** is a shorthand
  56. for normal (i.e., **+a**\ 90) and **+ap** for parallel (i.e., **+a**\ 0) annotations
  57. [Default]. For the y-axis, arbitrary angles are not allowed but **+an** and **+ap**
  58. specify annotations normal [Default] and parallel to the axis, respectively. Note that
  59. these defaults can be changed via :term:`MAP_ANNOT_ORTHO`. Geographic axes can
  60. take **+f** which will give fancy annotations with W|E|S|N suffices encoding the sign.
  61. The *intervals* specification is a concatenated string made up of substrings
  62. of the form
  63. [**a**\|\ **f**\|\ **g**]\ *stride*\ [*±phase*][*unit*].
  64. The leading **a** is used to specify the annotation and major tick
  65. spacing [Default], **f** for minor tick spacing, and **g** for
  66. gridline spacing. *stride* is the desired stride interval. The
  67. optional *phase* shifts the annotation interval by that amount
  68. (positive or negative). The optional *unit* indicates the unit of
  69. the *stride* and are particularly important for time-axes as they
  70. can be any of the ones listed below:
  71. - **Y** (year, plot with 4 digits)
  72. - **y** (year, plot with 2 digits)
  73. - **O** (month, plot using :term:`FORMAT_DATE_MAP`)
  74. - **o** (month, plot with 2 digits)
  75. - **U** (ISO week, plot using :term:`FORMAT_DATE_MAP`)
  76. - **u** (ISO week, plot using 2 digits)
  77. - **r** (Gregorian week, 7-day stride from start of week :term:`TIME_WEEK_START`)
  78. - **K** (ISO weekday, plot name of weekdays in selected language)
  79. - **k** (weekday, plot number of day in the week (1–7) (see :term:`TIME_WEEK_START`))
  80. - **D** (date, plot using :term:`FORMAT_DATE_MAP`)
  81. - **d** (day, plot day of month 0-31 or year 1-366, via :term:`FORMAT_DATE_MAP`)
  82. - **R** (day, same as **d**, aligned with :term:`TIME_WEEK_START`)
  83. - **H** (hour, plot using :term:`FORMAT_CLOCK_MAP`)
  84. - **h** (hour, plot with 2 digits)
  85. - **M** (minute, plot using :term:`FORMAT_CLOCK_MAP`)
  86. - **m** (minute, plot with 2 digits)
  87. - **S** (second, plot using :term:`FORMAT_CLOCK_MAP`)
  88. - **s** (second, plot with 2 digits).
  89. For geographic axes **d**, **m** and **s** instead mean arc degrees, minutes and seconds,
  90. while for Cartesian axes no unit is given.
  91. All entities that are language-specific are under control
  92. of :term:`GMT_LANGUAGE`. Alternatively, we can omit *stride*, thus setting
  93. *xinfo*, *yinfo*, or *zinfo* to **a** plots annotations at automatically determined intervals,
  94. - **ag** plots both annotations and grid lines with the same spacing,
  95. - **afg** adds suitable minor tick intervals,
  96. - **g** plots grid lines with the same interval as if **-Bf** was used.
  97. For custom annotations and intervals, let *intervals* be given as
  98. **c**\ *intfile*, where *intfile* contains any number of
  99. records with *coord* *type* [*label*]. Here, *type* is one or more
  100. letters from **a**\|\ **i**, **f**, and **g**. For
  101. **a**\|\ **i** you must supply a *label* that will be plotted at
  102. the *coord* location. |br|
  103. For non-geographical projections: Give negative scale (in **-Jx**)
  104. or axis length (in **-JX**) to change the direction of increasing
  105. coordinates (i.e., to make the y-axis positive down). |br|
  106. For log10 axes: Annotations can be specified in one of three ways:
  107. 1. *stride* can be 1, 2, 3, or -*n*. Annotations will then occur at 1,
  108. 1-2-5, or 1-2-3-4-...-9, respectively; for -*n* we annotate every
  109. *n*\ 't magnitude. This option can also be used for the frame and
  110. grid intervals.
  111. 2. An **l** is appended to the *tickinfo* string. Then, log10 of the
  112. tick value is plotted at every integer log10 value.
  113. 3. A **p** is appended to the *tickinfo* string. Then,
  114. annotations appear as 10 raised to log10 of the tick value.
  115. For power axes: Annotations can be specified in one of two ways:
  116. 1. *stride* sets the regular annotation interval.
  117. 2. A **p** is appended to the *tickinfo* string. Then, the annotation interval is
  118. expected to be in transformed units, but the annotation value will
  119. be plotted as untransformed units. E.g., if *stride* = 1 and *power*
  120. = 0.5 (i.e., sqrt), then equidistant annotations labeled 1-4-9... will appear.
  121. Finally, if your axis is in radians you can use multiples or fractions of **pi** to
  122. set such annotation intervals. The format is [*s*]\ **pi**\ [*f*], for an optional
  123. integer scale *s* and optional integer fraction *f*.
  124. These GMT parameters can affect the appearance of the map boundary:
  125. :term:`MAP_ANNOT_MIN_ANGLE`, :term:`MAP_ANNOT_MIN_SPACING`,
  126. :term:`FONT_ANNOT_PRIMARY`, :term:`FONT_ANNOT_SECONDARY`,
  127. :term:`MAP_ANNOT_OFFSET_PRIMARY`,
  128. :term:`MAP_ANNOT_OFFSET_SECONDARY`,
  129. :term:`MAP_ANNOT_ORTHO`, :term:`MAP_FRAME_AXES`, :term:`MAP_DEFAULT_PEN`,
  130. :term:`MAP_FRAME_TYPE`, :term:`FORMAT_GEO_MAP`, :term:`MAP_FRAME_PEN`,
  131. :term:`MAP_FRAME_WIDTH`, :term:`MAP_GRID_CROSS_SIZE_PRIMARY`,
  132. :term:`MAP_GRID_PEN_PRIMARY`, :term:`MAP_GRID_CROSS_SIZE_SECONDARY`,
  133. :term:`MAP_GRID_PEN_SECONDARY`, :term:`FONT_TITLE`, :term:`FONT_LABEL`,
  134. :term:`MAP_LINE_STEP`, :term:`MAP_ANNOT_OBLIQUE`,
  135. :term:`FORMAT_CLOCK_MAP`, :term:`FORMAT_DATE_MAP`,
  136. :term:`FORMAT_TIME_PRIMARY_MAP`, :term:`FORMAT_TIME_SECONDARY_MAP`,
  137. :term:`GMT_LANGUAGE`, :term:`TIME_WEEK_START`,
  138. :term:`MAP_TICK_LENGTH_PRIMARY`,
  139. and :term:`MAP_TICK_PEN_PRIMARY`; see the :doc:`gmt.conf` man page for details.
Tip!

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

Comments

Loading...