Skip to content

Commit

Permalink
Fix typos in documentation and codes (#3370)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Grund <[email protected]>
Co-authored-by: Dongdong Tian <[email protected]>
  • Loading branch information
3 people authored Sep 4, 2024
1 parent 9300bec commit 6dc8eb0
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion doc/maintenance.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ communication tools we use.
the onboarding access checklist:

- Move from the [pygmt-maintainers team](https://github.com/orgs/GenericMappingTools/teams/pygmt-maintainers)
to [pygmt-contributors team](https://github.com/orgs/GenericMappingTools/teams/pygmt-contributors)
to the [pygmt-contributors team](https://github.com/orgs/GenericMappingTools/teams/pygmt-contributors)
- Move from "Active Maintainers" to "Distinguished Contributors" on the {doc}`Team Gallery page <team>`
- Remove 'maintain' permission from GMT forum, ReadTheDocs, Zenodo

Expand Down
2 changes: 1 addition & 1 deletion doc/techref/encodings.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def get_charset_mdtable(name):

# Supported Encodings and Non-ASCII Characters

GMT supports a number of encodings and each encoding contains a set of ASCII and
PyGMT supports a number of encodings and each encoding contains a set of ASCII and
non-ASCII characters. In PyGMT, you can use any of these ASCII and non-ASCII characters
in arguments and text strings. When using non-ASCII characters in PyGMT, the easiest way
is to copy and paste the character from the encoding tables below.
Expand Down
2 changes: 1 addition & 1 deletion doc/techref/projections.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The table below shows the projection codes for the 31 GMT map projections:

| PyGMT Projection Argument | Projection Name |
| --- | --- |
| **A**{{ lon0 }}/{{ lat0 }}[/*horizon*]/*width* | {doc}`Lambert azimuthal equal area </projections/azim/azim_equidistant>` |
| **A**{{ lon0 }}/{{ lat0 }}[/*horizon*]/*width* | {doc}`Lambert azimuthal equal area </projections/azim/azim_lambert>` |
| **B**{{ lon0 }}/{{ lat0 }}/{{ lat1 }}/{{ lat2 }}/*width* | {doc}`Albers conic equal area </projections/conic/conic_albers>` |
| **C**{{ lon0 }}/{{ lat0 }}/*width* | {doc}`Cassini cylindrical </projections/cyl/cyl_cassini>` |
| **Cyl_stere**/[{{ lon0 }}/[{{ lat0 }}/]]*width* | {doc}`Cylindrical stereographic </projections/cyl/cyl_stereographic>` |
Expand Down
4 changes: 2 additions & 2 deletions examples/gallery/basemaps/ternary.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
The :meth:`pygmt.Figure.ternary` method can draw ternary diagrams. The example
shows how to plot circles with a diameter of 0.1 centimeters
(``style="c0.1c"``) on a 10-centimeter-wide (``width="10c"``) ternary diagram
(``style="c0.1c"``) on a 10-centimeters-wide (``width="10c"``) ternary diagram
at the positions listed in the first three columns of the sample dataset
``rock_compositions``, with default annotations and gridline spacings, using
the specified labeling defined via ``alabel``, ``blabel``, and ``clabel``.
Expand Down Expand Up @@ -36,7 +36,7 @@
frame=[
"aafg+lLimestone component+u %",
"bafg+lWater component+u %",
"cagf+lAir component+u %",
"cafg+lAir component+u %",
],
)

Expand Down
4 changes: 2 additions & 2 deletions examples/gallery/embellishments/colorbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
from anchor point.
- **n**: using normalized (0-1) coordinates, e.g. ``position="n0.4/0.8"``.
Note that the anchor point defaults to the bottom left (**BL**). Append ``+h``
to ``position`` to get a horizontal colorbar instead of a vertical one (``+v``).
Note that the anchor point defaults to Bottom Left (**BL**). Append ``+h`` to
``position`` to get a horizontal colorbar instead of a vertical one (``+v``).
"""

# %%
Expand Down
2 changes: 1 addition & 1 deletion examples/gallery/lines/vector_heads_tails.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
In the following we use the :meth:`pygmt.Figure.plot` method to plot vectors
with individual heads and tails. We must specify the modifiers (together with
the vector type, here ``"v"`` for Cartesian vector, see also
the vector type, here ``"v"`` for Cartesian vector, see also the
:doc:`Vector types example </gallery/lines/vector_styles>`)
by passing the corresponding shortcuts to the ``style`` parameter.
Expand Down
2 changes: 1 addition & 1 deletion examples/gallery/lines/vector_styles.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
The :meth:`pygmt.Figure.plot` method can plot Cartesian, circular, and
geographic vectors. The ``style`` parameter controls vector attributes.
See also :doc:`Vector attributes example </gallery/lines/vector_heads_tails>`.
See also the :doc:`Vector attributes example </gallery/lines/vector_heads_tails>`.
"""

# %%
Expand Down
4 changes: 2 additions & 2 deletions examples/tutorials/advanced/non_ascii_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@
)

fig.text(
x=[0.2, 0.2, 0.2, 0.2, 0.2],
x=[0.2] * 5,
y=[5, 4, 3, 2, 1],
text=["ASCII:", "ISOLatin1+:", "Symbol:", "ZapfDingbats:", "Mixed:"],
font="20p,Helvetica-Bold,red",
justify="LM",
)
fig.text(
x=[2, 2, 2, 2, 2],
x=[2] * 5,
y=[5, 4, 3, 2, 1],
text=[
"ABCDE12345!#$:;<=>?", # ASCII only
Expand Down

0 comments on commit 6dc8eb0

Please sign in to comment.