Skip to content

Commit 29d6088

Browse files
authored
Tiny improvements for the text tutorial (#1028)
1 parent 6691f77 commit 29d6088

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

examples/tutorials/text.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@
3737
fig.basemap(region=[108, 120, -5, 8], projection="M20c", frame="a")
3838
fig.coast(land="black", water="skyblue")
3939

40-
# Plotting text annotations using single elements
40+
# Plot text annotations using a single element
4141
fig.text(text="SOUTH CHINA SEA", x=112, y=6)
4242

43-
# Plotting text annotations using lists of elements
43+
# Plot text annotations using lists of elements
4444
fig.text(text=["CELEBES SEA", "JAVA SEA"], x=[119, 112], y=[3.25, -4.6])
4545

4646
fig.show()
@@ -51,16 +51,16 @@
5151
# The size, family/weight, and color of an annotation can be specified using
5252
# the ``font`` parameter.
5353
#
54-
# A list of all recognised fonts can be found at
55-
# :gmt-docs:`cookbook/postscript-fonts.html`, including details of how to use
56-
# non-default fonts.
54+
# A list of all recognized fonts can be found at
55+
# :gmt-docs:`PostScript Fonts Used by GMT <cookbook/postscript-fonts.html>`,
56+
# including details of how to use non-default fonts.
5757

5858
fig = pygmt.Figure()
5959
with pygmt.config(MAP_FRAME_TYPE="plain"):
6060
fig.basemap(region=[108, 120, -5, 8], projection="M20c", frame="a")
6161
fig.coast(land="black", water="skyblue")
6262

63-
# Customising the font style
63+
# Customize the font style
6464
fig.text(text="BORNEO", x=114.0, y=0.5, font="22p,Helvetica-Bold,white")
6565

6666
fig.show()
@@ -88,7 +88,7 @@
8888

8989
# Plot region names / sea names from a text file, where
9090
# the longitude (x) and latitude (y) coordinates are in the first two columns.
91-
# Setting angle/font/justify to ``True`` will indicate that those columns are
91+
# Setting angle/font/justify to True will indicate that those columns are
9292
# present in the text file too (Note: must be in that order!).
9393
# Finally, the text to be printed will be in the last column
9494
fig.text(textfiles="examples.txt", angle=True, font=True, justify=True)

0 commit comments

Comments
 (0)