Skip to content

Commit cd15b7d

Browse files
Generate separate images
1 parent b29a0a8 commit cd15b7d

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

examples/projections/cyl/cyl_oblique_mercator.py

+14-9
Original file line numberDiff line numberDiff line change
@@ -47,35 +47,40 @@
4747
# %%
4848
import pygmt
4949

50-
fig = pygmt.Figure()
50+
pygmt.config(FONT="5p", MAP_FRAME_PEN="0.5p", MAP_TITLE_OFFSET="-5p")
5151

52+
# -----------------------------------------------------------------------------
5253
# Left: Using the origin and azimuth
54+
fig = pygmt.Figure()
5355
fig.coast(
54-
projection="Oa-120/25/-30/6c+v",
56+
projection="Oa-120/25/-30/2c+v",
5557
# Set bottom left and top right coordinates of the figure with "+r"
5658
region="-122/35/-107/22+r",
5759
frame=["afg", "+ta | A"],
5860
land="gray",
5961
)
62+
fig.show()
6063

61-
fig.shift_origin(xshift="+w2c")
62-
64+
# -----------------------------------------------------------------------------
6365
# Middle: Using two points
66+
fig = pygmt.Figure()
6467
fig.coast(
65-
projection="Ob130/35/25/35/6c",
68+
projection="Ob130/35/25/35/2c",
6669
region="130/35/145/40+r",
6770
frame=["afg", "+tb | B"],
6871
land="gray",
6972
)
73+
fig.show()
7074

71-
fig.shift_origin(xshift="+w2c")
72-
75+
# -----------------------------------------------------------------------------
7376
# Right: Using the origin and projection pole
77+
fig = pygmt.Figure()
7478
fig.coast(
75-
projection="Oc280/25.5/22/69/12c",
79+
projection="Oc280/25.5/22/69/3c",
7680
region="270/20/305/25+r",
7781
frame=["afg", "+tc | C"],
7882
land="gray",
7983
)
80-
8184
fig.show()
85+
86+
# sphinx_gallery_thumbnail_number = 3

0 commit comments

Comments
 (0)