Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions examples/gallery/embellishments/inset_rectangle_region.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,19 @@

# %%
import pygmt
from pygmt.params import Box, Position
from pygmt.params import Axis, Box, Frame, Position

# Set the region of the main figure
region = [137.5, 141, 34, 37]

fig = pygmt.Figure()
# Plot the base map of the main figure. Universal Transverse Mercator (UTM) projection
# is used and the UTM zone is set to be "54S".
fig.basemap(region=region, projection="U54S/12c", frame=["WSne", "af"])
fig.basemap(
region=region,
projection="U54S/12c",
frame=Frame(axes="WSne", axis=Axis(annot=True, tick=True)),
)

# Set the land color to "lightbrown", the water color to "azure1", the shoreline width
# to "2p", and the area threshold to 1000 km^2 for the main figure.
Expand Down
Loading