Skip to content

Commit 9ddd91e

Browse files
DOC/projections: Make example design consistent (#3464)
1 parent f14aac5 commit 9ddd91e

31 files changed

+132
-97
lines changed

examples/projections/azim/azim_equidistant.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,7 @@
2222
import pygmt
2323

2424
fig = pygmt.Figure()
25-
fig.coast(projection="E-100/40/15c", region="g", frame="g", land="gray")
25+
fig.coast(
26+
region="g", projection="E-100/40/15c", frame="afg", land="khaki", water="white"
27+
)
2628
fig.show()

examples/projections/azim/azim_general_perspective.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@
3333

3434
fig = pygmt.Figure()
3535
fig.coast(
36-
projection="G4/52/12c+a30+t45+v60/60+w0+z250",
3736
region="g",
38-
frame=["x10g10", "y5g5"],
39-
land="gray",
37+
projection="G4/52/12c+a30+t45+v60/60+w0+z250",
38+
frame="afg",
39+
land="khaki",
40+
water="white",
4041
)
4142
fig.show()

examples/projections/azim/azim_general_stereographic.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,11 @@
2222
import pygmt
2323

2424
fig = pygmt.Figure()
25-
fig.coast(region=[4, 14, 52, 57], projection="S0/90/12c", frame="ag", land="gray")
25+
fig.coast(
26+
region=[4, 14, 52, 57],
27+
projection="S0/90/12c",
28+
frame="afg",
29+
land="khaki",
30+
water="white",
31+
)
2632
fig.show()

examples/projections/azim/azim_gnomonic.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,11 @@
2323
import pygmt
2424

2525
fig = pygmt.Figure()
26-
fig.coast(projection="F-90/15/12c", region="g", frame="20g20", land="gray")
26+
fig.coast(
27+
region="g",
28+
projection="F-90/15/12c",
29+
frame="afg",
30+
land="khaki",
31+
water="white",
32+
)
2733
fig.show()

examples/projections/azim/azim_lambert.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,11 @@
2020
import pygmt
2121

2222
fig = pygmt.Figure()
23-
fig.coast(region="g", frame="afg", land="gray", projection="A30/-20/60/12c")
23+
fig.coast(
24+
region="g",
25+
projection="A30/-20/60/12c",
26+
frame="afg",
27+
land="khaki",
28+
water="white",
29+
)
2430
fig.show()

examples/projections/azim/azim_orthographic.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,11 @@
2121
import pygmt
2222

2323
fig = pygmt.Figure()
24-
fig.coast(projection="G10/52/12c", region="g", frame="g", land="gray")
24+
fig.coast(
25+
region="g",
26+
projection="G10/52/12c",
27+
frame="afg",
28+
land="khaki",
29+
water="white",
30+
)
2531
fig.show()

examples/projections/conic/conic_albers.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
fig = pygmt.Figure()
2727
# Use the ISO country code for Brazil and add a padding of 2 degrees (+R2)
2828
fig.coast(
29-
projection="B-55/-15/-25/0/12c", region="BR+R2", frame="afg", land="gray", borders=1
29+
region="BR+R2",
30+
projection="B-55/-15/-25/0/12c",
31+
frame="afg",
32+
land="seagreen",
33+
water="gray90",
3034
)
3135
fig.show()

examples/projections/conic/conic_equidistant.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,10 @@
2020

2121
fig = pygmt.Figure()
2222
fig.coast(
23-
shorelines="1/0.5p",
2423
region=[-88, -70, 18, 24],
2524
projection="D-79/21/19/23/12c",
26-
land="lightgreen",
27-
water="lightblue",
2825
frame="afg",
26+
land="seagreen",
27+
water="gray90",
2928
)
3029
fig.show()

examples/projections/conic/conic_lambert.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,11 @@
2323

2424
fig = pygmt.Figure()
2525
fig.coast(
26-
shorelines="1/0.5p",
2726
region=[-130, -70, 24, 52],
2827
projection="L-100/35/33/45/12c",
29-
land="gray",
30-
borders=["1/thick,black", "2/thin,black"],
3128
frame="afg",
29+
land="seagreen",
30+
water="gray90",
3231
)
3332

3433
fig.show()

examples/projections/conic/polyconic.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,10 @@
3030

3131
fig = pygmt.Figure()
3232
fig.coast(
33-
shorelines="1/0.5p",
3433
region=[-180, -20, 0, 90],
3534
projection="Poly/12c",
36-
land="gray",
37-
borders="1/thick,black",
38-
frame="afg10",
35+
frame="afg",
36+
land="seagreen",
37+
water="gray90",
3938
)
40-
4139
fig.show()

0 commit comments

Comments
 (0)