Skip to content

Commit 94113b4

Browse files
Fix typos in API documentation (#2122)
1 parent 9936c9f commit 94113b4

File tree

7 files changed

+17
-17
lines changed

7 files changed

+17
-17
lines changed

pygmt/figure.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class Figure:
7070
>>> os.remove("my-figure.png")
7171
7272
The plot region can be specified through ISO country codes (for example,
73-
``'JP'`` for Japan):
73+
``"JP"`` for Japan):
7474
7575
>>> import pygmt
7676
>>> fig = pygmt.Figure()
@@ -216,7 +216,7 @@ def psconvert(self, icc_gray=False, **kwargs):
216216
**E** means EPS with PageSize command, **f** means PDF, **F** means
217217
multi-page PDF, **j** means JPEG, **g** means PNG, **G** means
218218
transparent PNG (untouched regions are transparent), **m** means
219-
PPM, **s** means SVG, and **t** means TIFF [default is JPEG]. To
219+
PPM, **s** means SVG, and **t** means TIFF [Default is JPEG]. To
220220
**b**\|\ **j**\|\ **g**\|\ **t**\ , optionally append **+m** in
221221
order to get a monochrome (grayscale) image. The EPS format can be
222222
combined with any of the other formats. For example, **ef** creates
@@ -340,7 +340,7 @@ def show(self, dpi=300, width=500, method=None, waiting=0.5, **kwargs):
340340
for the current figure. Parameters ``dpi`` and ``width`` can be used
341341
to control the resolution and dimension of the figure in the notebook.
342342
343-
Note: The external viewer can be disabled by setting the
343+
**Note**: The external viewer can be disabled by setting the
344344
PYGMT_USE_EXTERNAL_DISPLAY environment variable to **false**.
345345
This is useful when running unit tests and building the documentation
346346
in consoles without a Graphical User Interface.
@@ -360,8 +360,8 @@ def show(self, dpi=300, width=500, method=None, waiting=0.5, **kwargs):
360360
method : str
361361
How the current figure will be displayed. Options are
362362
363-
- **external**: PDF preview in an external program [default]
364-
- **notebook**: PNG preview [default in Jupyter notebooks]
363+
- **external**: PDF preview in an external program [Default]
364+
- **notebook**: PNG preview [Default in Jupyter notebooks]
365365
- **none**: Disable image preview
366366
waiting : float
367367
Suspend the execution of the current process for a given number of
@@ -527,8 +527,8 @@ def set_display(method=None):
527527
method : str or None
528528
The method to display an image. Choose from:
529529
530-
- **external**: PDF preview in an external program [default]
531-
- **notebook**: PNG preview [default in Jupyter notebooks]
530+
- **external**: PDF preview in an external program [Default]
531+
- **notebook**: PNG preview [Default in Jupyter notebooks]
532532
- **none**: Disable image preview
533533
"""
534534
if method in ["notebook", "external", "none"]:

pygmt/src/contour.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ def contour(self, data=None, x=None, y=None, z=None, **kwargs):
6767
levels : str or int
6868
Specify the contour lines to generate.
6969
70-
- The filename of a CPT file where the color boundaries will
70+
- The file name of a CPT file where the color boundaries will
7171
be used as contour levels.
72-
- The filename of a 2 (or 3) column file containing the contour
72+
- The file name of a 2 (or 3) column file containing the contour
7373
levels (col 1), (**C**)ontour or (**A**)nnotate (col 2), and optional
7474
angle (col 3)
7575
- A fixed contour interval *cont_int* or a single contour with

pygmt/src/grdcontour.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ def grdcontour(self, grid, **kwargs):
4747
interval : str or int
4848
Specify the contour lines to generate.
4949
50-
- The filename of a CPT file where the color boundaries will
50+
- The file name of a CPT file where the color boundaries will
5151
be used as contour levels.
52-
- The filename of a 2 (or 3) column file containing the contour
52+
- The file name of a 2 (or 3) column file containing the contour
5353
levels (col 1), (**C**)ontour or (**A**)nnotate (col 2), and optional
5454
angle (col 3)
5555
- A fixed contour interval *cont_int* or a single contour with

pygmt/src/grdtrack.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def grdtrack(grid, points=None, newcolname=None, outfile=None, **kwargs):
7272
Parameters
7373
----------
7474
grid : xarray.DataArray or str
75-
Gridded array from which to sample values from, or a filename (netcdf
75+
Gridded array from which to sample values from, or a file name (netcdf
7676
format).
7777
7878
points : str or {table-like}
@@ -210,7 +210,7 @@ def grdtrack(grid, points=None, newcolname=None, outfile=None, **kwargs):
210210
- **+a** : Append stacked values to all cross-profiles.
211211
- **+d** : Append stack deviations to all cross-profiles.
212212
- **+r** : Append data residuals (data - stack) to all cross-profiles.
213-
- **+s**\ [*file*] : Save stacked profile to *file* [Default filename
213+
- **+s**\ [*file*] : Save stacked profile to *file* [Default file name
214214
is grdtrack_stacked_profile.txt].
215215
- **+c**\ *fact* : Compute envelope on stacked profile as
216216
±\ *fact* \*\ *deviation* [Default fact value is 2].

pygmt/src/meca.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def meca(
214214
is 0.25p].
215215
no_clip : bool
216216
Does NOT skip symbols that fall outside frame boundary specified by
217-
*region* [Default is False, i.e. plot symbols inside map frame only].
217+
``region`` [Default is False, i.e. plot symbols inside map frame only].
218218
{projection}
219219
{region}
220220
{frame}

pygmt/src/text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def text_(
7676
Parameters
7777
----------
7878
textfiles : str or list
79-
A text data file name, or a list of filenames containing 1 or more
79+
A text data file name, or a list of file names containing 1 or more
8080
records with (x, y[, angle, font, justify], text).
8181
x/y : float or 1d arrays
8282
The x and y coordinates, or an array of x and y coordinates to plot

pygmt/src/x2sys_cross.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def x2sys_cross(tracks=None, outfile=None, **kwargs):
9494
or file names. Supported file formats are ASCII, native binary, or
9595
COARDS netCDF 1-D data. More columns may also be present.
9696
97-
If the filenames are missing their file extension, we will append the
97+
If the file names are missing their file extension, we will append the
9898
suffix specified for this TAG. Track files will be searched for first
9999
in the current directory and second in all directories listed in
100100
$X2SYS_HOME/TAG/TAG_paths.txt (if it exists). [If $X2SYS_HOME is not
@@ -118,7 +118,7 @@ def x2sys_cross(tracks=None, outfile=None, **kwargs):
118118
119119
runtimes : bool or str
120120
Compute and append the processing run-time for each pair to the
121-
progress message (use ``runtimes=True``). Pass in a filename (e.g.
121+
progress message (use ``runtimes=True``). Pass in a file name (e.g.
122122
``runtimes="file.txt"``) to save these run-times to file. The idea here
123123
is to use the knowledge of run-times to split the main process in a
124124
number of sub-processes that can each be launched in a different

0 commit comments

Comments
 (0)