Skip to content

Commit 4a9ef27

Browse files
authored
Merge branch 'master' into migrate-docs
2 parents 5632ccc + 8804efe commit 4a9ef27

11 files changed

+163
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
"""
2+
Equidistant conic
3+
=================
4+
5+
``Dlon0/lat0/lat1/lat2/width``: Give projection center ``lon0/lat0``, two standard
6+
parallels ``lat1/lat2``, and the map width.
7+
"""
8+
import pygmt
9+
10+
fig = pygmt.Figure()
11+
fig.coast(
12+
shorelines="1/0.5p",
13+
region=[-88, -70, 18, 24],
14+
projection="D-79/21/19/23/12c",
15+
land="lightgreen",
16+
water="lightblue",
17+
frame="afg",
18+
)
19+
20+
fig.show()
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
"""
2+
Lambert Conic Conformal Projection
3+
==================================
4+
5+
``Llon0/lat0/lat1/lat2/width``: Give projection center ``lon0/lat0``, two standard
6+
parallels ``lat1/lat2``, and the map width.
7+
"""
8+
import pygmt
9+
10+
fig = pygmt.Figure()
11+
fig.coast(
12+
shorelines="1/0.5p",
13+
region=[-130, -70, 24, 52],
14+
projection="L-100/35/33/45/12c",
15+
land="gray",
16+
borders=["1/thick,black", "2/thin,black"],
17+
frame="afg",
18+
)
19+
20+
fig.show()
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
"""
2+
Polyconic Projection
3+
====================
4+
5+
``Poly/width``: The only additional argument for the projection is the map width.
6+
"""
7+
import pygmt
8+
9+
fig = pygmt.Figure()
10+
fig.coast(
11+
shorelines="1/0.5p",
12+
region=[-180, -20, 0, 90],
13+
projection="Poly/12c",
14+
land="gray",
15+
borders="1/thick,black",
16+
frame="afg10",
17+
)
18+
19+
fig.show()
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"""
2+
Eckert IV
3+
=========
4+
5+
``Kf[central meridian]/width``: Give the optional central meridian (default is the
6+
center of the region) and the map width.
7+
"""
8+
import pygmt
9+
10+
fig = pygmt.Figure()
11+
# Use region "d" to specify global region (-180/180/-90/90)
12+
fig.coast(region="d", projection="Kf12c", land="ivory", water="bisque4", frame="afg")
13+
fig.show()
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"""
2+
Eckert VI
3+
=========
4+
5+
``Ks[central meridian]/width``: Give the optional central meridian (default is the
6+
center of the region) and the map width.
7+
"""
8+
import pygmt
9+
10+
fig = pygmt.Figure()
11+
# Use region "d" to specify global region (-180/180/-90/90)
12+
fig.coast(region="d", projection="Ks12c", land="ivory", water="bisque4", frame="afg")
13+
fig.show()
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"""
2+
Hammer
3+
======
4+
5+
``H[central meridian]/width``: Give the optional central meridian (default is the center
6+
of the region) and the map width.
7+
"""
8+
import pygmt
9+
10+
fig = pygmt.Figure()
11+
# Use region "d" to specify global region (-180/180/-90/90)
12+
fig.coast(region="d", projection="H12c", land="black", water="cornsilk", frame="afg")
13+
fig.show()
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"""
2+
Mollweide
3+
=========
4+
5+
``W[central meridian]/width``: Give the optional central meridian (default is the center
6+
of the region) and the map width.
7+
"""
8+
import pygmt
9+
10+
fig = pygmt.Figure()
11+
# Use region "d" to specify global region (-180/180/-90/90)
12+
fig.coast(region="d", projection="W12c", land="tomato1", water="skyblue", frame="ag")
13+
fig.show()
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"""
2+
Robinson
3+
========
4+
5+
``N[central meridian]/width``: Give the optional central meridian (default is the center
6+
of the region) and the map width.
7+
"""
8+
import pygmt
9+
10+
fig = pygmt.Figure()
11+
# Use region "d" to specify global region (-180/180/-90/90)
12+
fig.coast(region="d", projection="N12c", land="goldenrod", water="snow2", frame="afg")
13+
fig.show()
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"""
2+
Sinusoidal
3+
==========
4+
5+
``I[central meridian]/width``: Give the optional central meridian (default is the center
6+
of the region) and the map width.
7+
"""
8+
import pygmt
9+
10+
fig = pygmt.Figure()
11+
# Use region "d" to specify global region (-180/180/-90/90)
12+
fig.coast(region="d", projection="I12c", land="coral4", water="azure3", frame="afg")
13+
fig.show()
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"""
2+
Van der Grinten
3+
===============
4+
5+
``V[central meridian]/width``: Give the optional central meridian (default is the center
6+
of the region) and the map width.
7+
"""
8+
import pygmt
9+
10+
fig = pygmt.Figure()
11+
# Use region "d" to specify global region (-180/180/-90/90)
12+
fig.coast(region="d", projection="V12c", land="gray", water="cornsilk", frame="afg")
13+
fig.show()

0 commit comments

Comments
 (0)