Skip to content

Commit 8804efe

Browse files
Adding miscellaneous projections to gallery (#723)
* Add Hammer projection with default central meridian * Add Hammer projection with prime meridian as central meridian * Update misc_hammer.py region and central meridian default * Add misc_mollweide.py * Add misc_winkel_tripel.py * Add misc_robinson.py * Add misc_eckertIV.py * Add misc_eckertVI.py * Remove "projection" from titles * Add misc_sinusoidal.py * Add misc_van_der_grinten.py * Update examples/projections/misc/misc_sinusoidal.py Co-authored-by: Dongdong Tian <[email protected]> * Update examples/projections/misc/misc_van_der_grinten.py Co-authored-by: Dongdong Tian <[email protected]> * Update explanation of d projection for all figures Co-authored-by: Dongdong Tian <[email protected]>
1 parent 666ded2 commit 8804efe

File tree

8 files changed

+104
-0
lines changed

8 files changed

+104
-0
lines changed
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()
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"""
2+
Winkel Tripel
3+
=============
4+
5+
``R[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="R12c", land="burlywood4", water="wheat1", frame="afg")
13+
fig.show()

0 commit comments

Comments
 (0)