Skip to content

Commit aa7c658

Browse files
DOC: Typo fixes regarding singular-plural usage (#3964)
1 parent 06dd1a5 commit aa7c658

File tree

8 files changed

+16
-17
lines changed

8 files changed

+16
-17
lines changed

examples/gallery/histograms/blockm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
# Set the region for the plot
2020
region = [130, 152.5, 32.5, 52.5]
21-
# Define spacing in x- and y-direction (150x150 arc-minute blocks)
21+
# Define spacing in x- and y-directions (150x150 arc-minute blocks)
2222
spacing = "150m"
2323

2424
fig = pygmt.Figure()

examples/gallery/images/grdlandmask.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# Assign a value of 0 for all water masses and a value of 1 for all land
1818
# masses.
1919
# Use shoreline data with (l)ow resolution and set the grid spacing to
20-
# 5 arc-minutes in x- and y-direction.
20+
# 5 arc-minutes in x- and y-directions.
2121
grid = pygmt.grdlandmask(region=region, spacing="5m", maskvalues=[0, 1], resolution="l")
2222

2323
# Plot clipped grid

examples/tutorials/advanced/3d_perspective_image.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727
# Sets the view azimuth as 130 degrees, and the view elevation as 30
2828
# degrees
2929
perspective=[130, 30],
30-
# Sets the x- and y-axis labels, and annotates the west, south, and east
31-
# axes
30+
# Sets the x- and y-axis labels, and annotates the west, south, and east axes
3231
frame=["xa", "ya", "WSnE"],
3332
# Sets a Mercator projection on a 15-centimeter figure
3433
projection="M15c",

examples/tutorials/advanced/cartesian_histograms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
fill="red3",
8080
pen="1p,darkgray,solid",
8181
histtype=0,
82-
# Use horizontal bars. Note that the x- and y-axis are flipped, with the x-axis
82+
# Use horizontal bars. Note that the x- and y-axes are flipped, with the x-axis
8383
# plotted vertically and the y-axis plotted horizontally.
8484
horizontal=True,
8585
)

examples/tutorials/advanced/insets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
# %%
5858
# When using **j** to set the anchor of the inset, the default location is in
5959
# contact with the nearby axis or axes. The offset of the inset can be set with
60-
# **+o**, followed by the offsets along the x- and y-axis. If only one offset
60+
# **+o**, followed by the offsets along the x- and y-axes. If only one offset
6161
# is passed, it is applied to both axes. Each offset can have its own unit. In
6262
# the example below, the inset is shifted 0.5 centimeters on the x-axis and
6363
# 0.2 centimeters on the y-axis.

pygmt/src/basemap.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ def basemap(self, **kwargs):
6060
**+p**\ *pen*. Add **+g**\ *fill* to fill the scale panel [Default is
6161
no fill]. Append **+c**\ *clearance* where *clearance* is either gap,
6262
xgap/ygap, or lgap/rgap/bgap/tgap where these items are uniform,
63-
separate in x- and y-direction, or individual side spacings between
64-
scale and border. Append **+i** to draw a secondary, inner border as
65-
well. We use a uniform gap between borders of 2p and the
63+
separate x and y, or individual side spacings between scale and
64+
border. Append **+i** to draw a secondary, inner border as well.
65+
We use a uniform gap between borders of 2 points and the
6666
:gmt-term:`MAP_DEFAULTS_PEN` unless other values are specified. Append
67-
**+r** to draw rounded rectangular borders instead, with a 6p corner
68-
radius. You can override this radius by appending another value.
67+
**+r** to draw rounded rectangular borders instead, with a 6-points
68+
corner radius. You can override this radius by appending another value.
6969
Finally, append **+s** to draw an offset background shaded region.
7070
Here, *dx/dy* indicates the shift relative to the foreground frame
7171
[Default is ``"4p/-4p"``] and shade sets the fill style to use for

pygmt/src/coast.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,12 @@ def coast(
129129
**+p**\ *pen*. Add **+g**\ *fill* to fill the scale panel [Default is
130130
no fill]. Append **+c**\ *clearance* where *clearance* is either gap,
131131
xgap/ygap, or lgap/rgap/bgap/tgap where these items are uniform,
132-
separate in x- and y-direction, or individual side spacings between
133-
scale and border. Append **+i** to draw a secondary, inner border as
134-
well. We use a uniform gap between borders of 2p and the
132+
separate x and y, or individual side spacings between scale and
133+
border. Append **+i** to draw a secondary, inner border as well.
134+
We use a uniform gap between borders of 2 points and the
135135
:gmt-term:`MAP_DEFAULTS_PEN` unless other values are specified. Append
136-
**+r** to draw rounded rectangular borders instead, with a 6p corner
137-
radius. You can override this radius by appending another value.
136+
**+r** to draw rounded rectangular borders instead, with a 6-points
137+
corner radius. You can override this radius by appending another value.
138138
Finally, append **+s** to draw an offset background shaded region.
139139
Here, *dx/dy* indicates the shift relative to the foreground frame
140140
[Default is ``"4p/-4p"``] and shade sets the fill style to use for

pygmt/src/grdsample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def grdsample(
8080
... resolution="30m", region=[10, 30, 15, 25]
8181
... )
8282
>>> # Create a new grid from an input grid, change the registration,
83-
>>> # and set both x- and y-spacing to 0.5 arc-degrees
83+
>>> # and set both x- and y-spacings to 0.5 arc-degrees
8484
>>> new_grid = pygmt.grdsample(grid=grid, translate=True, spacing=[0.5, 0.5])
8585
"""
8686
with Session() as lib:

0 commit comments

Comments
 (0)