From 42937b5925588243102750e95cb98767305f504e Mon Sep 17 00:00:00 2001 From: core-man Date: Tue, 9 Mar 2021 17:12:01 +0800 Subject: [PATCH 1/3] Tiny fix for the text tutorial --- examples/tutorials/text.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/tutorials/text.py b/examples/tutorials/text.py index 8474ffbbb3f..ead00240b16 100644 --- a/examples/tutorials/text.py +++ b/examples/tutorials/text.py @@ -37,10 +37,10 @@ fig.basemap(region=[108, 120, -5, 8], projection="M20c", frame="a") fig.coast(land="black", water="skyblue") -# Plotting text annotations using single elements +# Plot text annotations using a single element fig.text(text="SOUTH CHINA SEA", x=112, y=6) -# Plotting text annotations using lists of elements +# Plot text annotations using lists of elements fig.text(text=["CELEBES SEA", "JAVA SEA"], x=[119, 112], y=[3.25, -4.6]) fig.show() @@ -88,7 +88,7 @@ # Plot region names / sea names from a text file, where # the longitude (x) and latitude (y) coordinates are in the first two columns. -# Setting angle/font/justify to ``True`` will indicate that those columns are +# Setting angle/font/justify to True will indicate that those columns are # present in the text file too (Note: must be in that order!). # Finally, the text to be printed will be in the last column fig.text(textfiles="examples.txt", angle=True, font=True, justify=True) From a4121e4f114a0933630bf9dff64cd91dfd80da09 Mon Sep 17 00:00:00 2001 From: core-man Date: Wed, 10 Mar 2021 13:57:07 +0800 Subject: [PATCH 2/3] Update --- examples/tutorials/text.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/tutorials/text.py b/examples/tutorials/text.py index ead00240b16..15da8cb8590 100644 --- a/examples/tutorials/text.py +++ b/examples/tutorials/text.py @@ -51,7 +51,7 @@ # The size, family/weight, and color of an annotation can be specified using # the ``font`` parameter. # -# A list of all recognised fonts can be found at +# A list of all recognized fonts can be found at # :gmt-docs:`cookbook/postscript-fonts.html`, including details of how to use # non-default fonts. @@ -60,7 +60,7 @@ fig.basemap(region=[108, 120, -5, 8], projection="M20c", frame="a") fig.coast(land="black", water="skyblue") -# Customising the font style +# Customize the font style fig.text(text="BORNEO", x=114.0, y=0.5, font="22p,Helvetica-Bold,white") fig.show() @@ -152,4 +152,4 @@ # # For crafting more advanced styles, be sure to check out the GMT documentation # at :gmt-docs:`text.html` and also the cookbook at -# :gmt-docs:`cookbook/features.html#placement-of-text`. Good luck! +# :gmt-docs:`PostScript Fonts Used by GMT `. Good luck! From ec4e401bead4181a6927b5de28af87a0416bced6 Mon Sep 17 00:00:00 2001 From: Yao Jiayuan Date: Thu, 11 Mar 2021 03:04:44 +0800 Subject: [PATCH 3/3] Fix wrong link --- examples/tutorials/text.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/tutorials/text.py b/examples/tutorials/text.py index 15da8cb8590..90f03e5e7a6 100644 --- a/examples/tutorials/text.py +++ b/examples/tutorials/text.py @@ -52,8 +52,8 @@ # the ``font`` parameter. # # A list of all recognized fonts can be found at -# :gmt-docs:`cookbook/postscript-fonts.html`, including details of how to use -# non-default fonts. +# :gmt-docs:`PostScript Fonts Used by GMT `, +# including details of how to use non-default fonts. fig = pygmt.Figure() with pygmt.config(MAP_FRAME_TYPE="plain"): @@ -152,4 +152,4 @@ # # For crafting more advanced styles, be sure to check out the GMT documentation # at :gmt-docs:`text.html` and also the cookbook at -# :gmt-docs:`PostScript Fonts Used by GMT `. Good luck! +# :gmt-docs:`cookbook/features.html#placement-of-text`. Good luck!