Skip to content

Commit a555ba7

Browse files
Fix typos in docs and examples (#2114)
1 parent cbe3a5d commit a555ba7

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

examples/gallery/lines/wiggle.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
x=x,
2424
y=y,
2525
z=z,
26-
# Set anomaly scale to "20c"
26+
# Set anomaly scale to 20 centimeters
2727
scale="20c",
2828
# Fill positive and negative areas red and gray, respectively
2929
color=["red+p", "gray+n"],
30-
# Set the outline width to "1.0p"
30+
# Set the outline width to 1.0 point
3131
pen="1.0p",
3232
# Draw a blue track with a width of 0.5 points
3333
track="0.5p,blue",

examples/tutorials/basics/regions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
###############################################################################
3939
#
4040
# The coordinates can be passed to ``region`` as a list, in the form of
41-
# [*xmin*,\ *xmax*,\ *ymin*,\ *ymax*].
41+
# [*xmin*, *xmax*, *ymin*, *ymax*].
4242

4343
fig = pygmt.Figure()
4444
fig.coast(

pygmt/src/legend.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def legend(self, spec=None, position="JTR+jTR+o0.2c", box="+gwhite+p1p", **kwarg
4545
Parameters
4646
----------
4747
spec : None or str
48-
Either ``None`` [default] for using the automatically generated legend
48+
Either ``None`` [Default] for using the automatically generated legend
4949
specification file, or a *filename* pointing to the legend
5050
specification file.
5151
{J}
@@ -55,7 +55,7 @@ def legend(self, spec=None, position="JTR+jTR+o0.2c", box="+gwhite+p1p", **kwarg
5555
**+w**\ *width*\ [/*height*]\ [**+j**\ *justify*]\ [**+l**\ *spacing*]\
5656
[**+o**\ *dx*\ [/*dy*]].
5757
Defines the reference point on the map for the
58-
legend. By default, uses **JTR**\ +\ **jTR**\ +\ **o**\ *0.2c* which
58+
legend. By default, uses **JTR**\ **+jTR**\ **+o**\ 0.2c which
5959
places the legend at the top-right corner inside the map frame, with a
6060
0.2 cm offset.
6161
box : bool or str

pygmt/src/solar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def solar(self, terminator="d", terminator_datetime=None, **kwargs):
5656
Color or pattern for filling of terminators.
5757
pen : str
5858
Set pen attributes for lines. The default pen
59-
is ``default,black,solid``.
59+
is ``"0.25p,black,solid"``.
6060
{U}
6161
{V}
6262
{XY}

pygmt/src/wiggle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def wiggle(self, data=None, x=None, y=None, z=None, **kwargs):
7777
7878
track : str
7979
Draw track [Default is no track]. Append pen attributes to use
80-
[Default is **0.25p,black,solid**].
80+
[Default is ``"0.25p,black,solid"``].
8181
{U}
8282
{V}
8383
pen : str

0 commit comments

Comments
 (0)