Skip to content

Commit a2e8ef7

Browse files
Use new Frame and Axis parameter classes
1 parent 2a14b76 commit a2e8ef7

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

examples/gallery/embellishments/inset_rectangle_region.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,19 @@
99

1010
# %%
1111
import pygmt
12-
from pygmt.params import Box, Position
12+
from pygmt.params import Axis, Box, Frame, Position
1313

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

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

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

0 commit comments

Comments
 (0)