Skip to content

Commit 7160fde

Browse files
Update gallery example
1 parent 40ae5f2 commit 7160fde

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

examples/gallery/images/grdlandmask.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
==========================
44
55
The :func:`pygmt.grdlandmask` function allows setting all nodes on land
6-
or water to a specified value using the ``maskvalues`` parameter.
6+
or water to a specified value using the ``mask_values`` parameter.
77
"""
88

99
# %%
@@ -18,7 +18,9 @@
1818
# masses.
1919
# Use shoreline data with (l)ow resolution and set the grid spacing to
2020
# 5 arc-minutes in x- and y-directions.
21-
grid = pygmt.grdlandmask(region=region, spacing="5m", maskvalues=[0, 1], resolution="l")
21+
grid = pygmt.grdlandmask(
22+
region=region, spacing="5m", mask_values=[0, 1], resolution="l"
23+
)
2224

2325
# Plot clipped grid
2426
fig.basemap(region=region, projection="M12c", frame=True)

0 commit comments

Comments
 (0)