|
27 | 27 |
|
28 | 28 | fig = pygmt.Figure()
|
29 | 29 | fig.coast(
|
30 |
| - # Sets the x-range from 10E to 20E and the y-range to 35N to 45N |
| 30 | + # Set the x-range from 10E to 20E and the y-range to 35N to 45N |
31 | 31 | region="10/20/35/45",
|
32 | 32 | # Set projection to Mercator, and the figure size to 15 centimeters
|
33 | 33 | projection="M15c",
|
|
46 | 46 |
|
47 | 47 | ########################################################################################
|
48 | 48 | #
|
49 |
| -# The coordinates can be passed to ``region`` as a list, in the form |
50 |
| -# of [*xmin*,\ *xmax*,\ *ymin*,\ *ymax*]. |
| 49 | +# The coordinates can be passed to ``region`` as a list, in the form of |
| 50 | +# [*xmin*,\ *xmax*,\ *ymin*,\ *ymax*]. |
51 | 51 |
|
52 | 52 | fig = pygmt.Figure()
|
53 | 53 | fig.coast(
|
54 |
| - # Sets the x-range from 10E to 20E and the y-range to 35N to 45N |
| 54 | + # Set the x-range from 10E to 20E and the y-range to 35N to 45N |
55 | 55 | region=[10, 20, 35, 45],
|
56 | 56 | projection="M12c",
|
57 | 57 | land="lightgray",
|
|
71 | 71 |
|
72 | 72 | fig = pygmt.Figure()
|
73 | 73 | fig.coast(
|
74 |
| - # Sets the bottom-left corner as 10E, 35N and the top-right corner as 20E, 45N |
| 74 | + # Set the bottom-left corner as 10E, 35N and the top-right corner as 20E, 45N |
75 | 75 | region="10/35/20/45+r",
|
76 | 76 | projection="M12c",
|
77 | 77 | land="lightgray",
|
|
133 | 133 |
|
134 | 134 | fig = pygmt.Figure()
|
135 | 135 | fig.coast(
|
136 |
| - # Sets the figure region to encompass Japan with the ISO code "JP" |
| 136 | + # Set the figure region to encompass Japan with the ISO code "JP" |
137 | 137 | region="JP",
|
138 | 138 | projection="M12c",
|
139 | 139 | land="lightgray",
|
|
147 | 147 | ########################################################################################
|
148 | 148 | #
|
149 | 149 | # The area encompassed by the ISO code can be expanded by appending **+r**\ *increment*
|
150 |
| -# to the ISO code. The *increment* unit is in degrees, and if only value is added it |
151 |
| -# expands the range of the region in all directions. Using **+r** rounds to the nearest |
152 |
| -# increment. |
| 150 | +# to the ISO code. The *increment* unit is in degrees, and if only one value is added it |
| 151 | +# expands the range of the region in all directions. Using **+r** expands the |
| 152 | +# final region boundaries to be multiples of *increment* . |
153 | 153 |
|
154 | 154 | fig = pygmt.Figure()
|
155 | 155 | fig.coast(
|
156 |
| - # Expands the region setting outside the range of Japan by 3 degrees in all |
157 |
| - # directions |
| 156 | + # Expand the region boundaries to be multiples of 3 degrees in all directions |
158 | 157 | region="JP+r3",
|
159 | 158 | projection="M12c",
|
160 | 159 | land="lightgray",
|
|
172 | 171 |
|
173 | 172 | fig = pygmt.Figure()
|
174 | 173 | fig.coast(
|
175 |
| - # Expands the region setting outside the range of Japan by 3 degrees on the x-axis |
| 174 | + # Expand the region boundaries to be multiples of 3 degrees on the x-axis |
176 | 175 | # and 5 degrees on the y-axis.
|
177 | 176 | region="JP+r3/5",
|
178 | 177 | projection="M12c",
|
|
193 | 192 |
|
194 | 193 | fig = pygmt.Figure()
|
195 | 194 | fig.coast(
|
196 |
| - # Expands the region setting outside the range of Japan by 3 degrees to the west, |
| 195 | + # Expand the region boundaries to be multiples of 3 degrees to the west, |
197 | 196 | # 5 degrees to the east, 7 degrees to the south, and 9 degrees to the north.
|
198 | 197 | region="JP+r3/5/7/9",
|
199 | 198 | projection="M12c",
|
|
212 | 211 |
|
213 | 212 | fig = pygmt.Figure()
|
214 | 213 | fig.coast(
|
215 |
| - # Expands the region setting outside the range of Japan by 3 degrees in all |
| 214 | + # Expand the region setting outside the range of Japan by 3 degrees in all |
216 | 215 | # directions, without rounding to the nearest increment.
|
217 | 216 | region="JP+R3",
|
218 | 217 | projection="M12c",
|
|
226 | 225 |
|
227 | 226 | ########################################################################################
|
228 | 227 | #
|
229 |
| -# The ``region`` increment can be appended with **+e**, which expand the bounding box |
230 |
| -# by at least 25% beyond the increment. |
| 228 | +# The ``region`` increment can be appended with **+e**, which is like **+r** and |
| 229 | +# expands the final region boundaries to be multiples of *increment*. However, |
| 230 | +# it ensures that the bounding box extends by at least 0.25 times the increment. |
231 | 231 |
|
232 | 232 | fig = pygmt.Figure()
|
233 | 233 | fig.coast(
|
234 |
| - # Expands the region setting outside the range of Japan by 3 degrees in all |
235 |
| - # directions, without rounding to the nearest increment. |
| 234 | + # Expand the region boundaries to be multiples of 3 degrees in all directions |
236 | 235 | region="JP+e3",
|
237 | 236 | projection="M12c",
|
238 | 237 | land="lightgray",
|
|
0 commit comments