Skip to content

Commit 0c57126

Browse files
DOC: Gallery example "Highlight country, continent and state polygons" - add details on country code (#4002)
1 parent a1c053c commit 0c57126

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

examples/gallery/maps/country_polygons.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
Highlight country, continent and state polygons
33
===============================================
44
5-
The :meth:`pygmt.Figure.coast` method can highlight country polygons
6-
via the ``dcw`` parameter. It accepts the country code or full
7-
country name and can draw its borders and add a color to its landmass.
8-
It's also possible to define multiple countries at once by separating
9-
the individual names with commas.
5+
The :meth:`pygmt.Figure.coast` method can highlight country polygons via the ``dcw``
6+
parameter. It accepts the country code (following the 2-letter
7+
`ISO 3166-1 alpha-2 convention <https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2>`_) or
8+
full country name and can draw its borders and add a color to its landmass. It's also
9+
possible to define multiple countries at once by separating the individual names with
10+
commas.
1011
"""
1112

1213
# %%

pygmt/src/coast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def coast(
168168
*code1,code2,…*\ [**+g**\ *fill*\ ][**+p**\ *pen*\ ][**+z**].
169169
Select painting country polygons from the `Digital Chart of the World
170170
<https://en.wikipedia.org/wiki/Digital_Chart_of_the_World>`__.
171-
Append one or more comma-separated countries using the 2-character
171+
Append one or more comma-separated countries using the 2-letter
172172
`ISO 3166-1 alpha-2 convention
173173
<https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2>`__.
174174
To select a state of a country (if available), append .\ *state*,

0 commit comments

Comments
 (0)