Skip to content

Commit 3534f9c

Browse files
Apply suggestions from code review
I reviewed these suggestions, and appreciate the feedback! Thank you for the improvements. Co-authored-by: Will Schlitzer <schlitzer90@gmail.com>
1 parent 87db02c commit 3534f9c

File tree

3 files changed

+20
-10
lines changed

3 files changed

+20
-10
lines changed

examples/projections/cyl/cyl_oblique_mercator_1.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,25 @@
77
extent in an oblique direction. Both parallels and meridians are complex
88
curves. The projection was developed in the early 1900s by several workers.
99
10-
**oa**\ *lon0/lat0* */azimuth*\ */scale*\ **[+v]** or
11-
**OA**\ *lon0/lat0* */azimuth*\ */width*\ **[+v]** or
10+
**oa**\ |**oA**\ *lon0/lat0* */azimuth*\ */scale*\ **[+v]** or
11+
**Oa**\ |**OA**\ *lon0/lat0* */azimuth*\ */width*\ **[+v]** or
1212
13-
The projection is set with **o** or **O**. The central meridian is set by
14-
*lon0/lat0*. The oblique equator is set by the azimuth. Align the y-axis
13+
The projection is set with **o** or **O**. The pole is set in the
14+
northern hemisphere with **a** or the southern hemisphere
15+
with **A**. The central meridian is set by *lon0/lat0*. The oblique equator
16+
is set by the azimuth. Align the y-axis
1517
with the optional *+v*. The figure size is set with *scale* or *width*.
1618
"""
1719
import pygmt
1820

1921
fig = pygmt.Figure()
2022
# Using the origin and azimuth
2123
fig.coast(projection="Oa-120/25/-30/12c+v",
24+
# Set bottom left and top right coordinates of the figure with "+r"
2225
region= "-122/35/-107/22+r",
2326
frame="afg",
2427
land="gray",
28+
shorelines="1/thin",
2529
water="lightblue",
2630
)
2731
fig.show()

examples/projections/cyl/cyl_oblique_mercator_2.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,25 @@
77
extent in an oblique direction. Both parallels and meridians are complex
88
curves. The projection was developed in the early 1900s by several workers.
99
10-
**ob**\ *lon0/lat0* */lon1/lat1*\ */scale*\ **[+v]** or
11-
**OB**\ *lon0/lat0* */lon1/lat1*\ */width*\ **[+v]** or
10+
**ob**\ |**oB**\ *lon0/lat0* */lon1/lat1*\ */scale*\ **[+v]** or
11+
**Ob**\ |**OB**\*lon0/lat0* */lon1/lat1*\ */width*\ **[+v]** or
1212
13-
The projection is set with **o** or **O**. The central meridian is set by
14-
*lon0/lat0*. The oblique equator is set by *lon1/lat1*. Align the y-axis
13+
The projection is set with **o** or **O**. The pole is set in the
14+
northern hemisphere with **b** or the southern hemisphere
15+
with **B**. The central meridian is set by *lon0/lat0*. The oblique
16+
equator is set by *lon1/lat1*. Align the y-axis
1517
with the optional *+v*. The figure size is set with *scale* or *width*.
1618
"""
1719
import pygmt
1820

1921
fig = pygmt.Figure()
2022
# Using the origin and two points
2123
fig.coast(projection="Ob130/35/25/35/12c",
24+
# Set bottom left and top right coordinates of the figure with "+r"
2225
region= "130/35/145/40+r",
2326
frame="afg",
2427
land="gray",
28+
shorelines="1/thin",
2529
water="lightblue",
2630
)
2731
fig.show()

examples/projections/cyl/cyl_oblique_mercator_3.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
extent in an oblique direction. Both parallels and meridians are complex
88
curves. The projection was developed in the early 1900s by several workers.
99
10-
**oc**\ *lon0/lat0* */lonp/latp*\ */scale*\ **[+v]** or
11-
**OC**\ *lon0/lat0* */lonp/latp*\ */width*\ **[+v]**
10+
**oc**\ |**oC**\ *lon0/lat0* */lonp/latp*\ */scale*\ **[+v]** or
11+
**Oc**\ |**OC**\ *lon0/lat0* */lonp/latp*\ */width*\ **[+v]**
1212
1313
The projection is set with **o** or **O**. The central meridian is set
1414
by *lon0/lat0*. The projection pole is set by *lonp/latp* in option three.
@@ -20,9 +20,11 @@
2020
fig = pygmt.Figure()
2121
# Using the origin projection pole
2222
fig.coast(projection="Oc280/25.5/22/69/12c",
23+
# Set bottom left and top right coordinates of the figure with "+r"
2324
region= "270/20/305/25+r",
2425
frame="afg",
2526
land="gray",
27+
shorelines="1/thin",
2628
water="lightblue",
2729
)
2830
fig.show()

0 commit comments

Comments
 (0)