From ad41c57f3efbc4be1788b97e608b326ba330ee9a Mon Sep 17 00:00:00 2001 From: core-man Date: Sun, 14 Mar 2021 02:31:01 +0800 Subject: [PATCH 1/4] Add GMT link for color names --- examples/gallery/maps/land_and_water.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/gallery/maps/land_and_water.py b/examples/gallery/maps/land_and_water.py index 3ee3a012088..b0175c8f7db 100644 --- a/examples/gallery/maps/land_and_water.py +++ b/examples/gallery/maps/land_and_water.py @@ -3,8 +3,9 @@ -------------------- The ``land`` and ``water`` parameters of :meth:`pygmt.Figure.coast` specify a color to -fill in the land and water masses, respectively. You can use standard GMT color names or -give a hex value (like ``#333333``). +fill in the land and water masses, respectively. You can use +:gmt-docs:`standard GMT color names ` +or give a hex value (like ``#333333``). """ import pygmt From 8e6cc3a179d4ad198372e95a2837db1abde97b83 Mon Sep 17 00:00:00 2001 From: core-man Date: Sun, 14 Mar 2021 03:18:54 +0800 Subject: [PATCH 2/4] Add more color codes --- examples/gallery/maps/land_and_water.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/gallery/maps/land_and_water.py b/examples/gallery/maps/land_and_water.py index b0175c8f7db..29bd5762352 100644 --- a/examples/gallery/maps/land_and_water.py +++ b/examples/gallery/maps/land_and_water.py @@ -3,9 +3,10 @@ -------------------- The ``land`` and ``water`` parameters of :meth:`pygmt.Figure.coast` specify a color to -fill in the land and water masses, respectively. You can use -:gmt-docs:`standard GMT color names ` -or give a hex value (like ``#333333``). +fill in the land and water masses, respectively. There are many +:gmt-docs:`color codes in GMT `, e.g., standard GMT color +names (like ``skyblue``), R/G/B (like ``0/0/255``), a hex value (like ``#333333``), +graylevel (like ``50``). """ import pygmt From b54aa567cd18248ac4ef93bda744eab0675f6bea Mon Sep 17 00:00:00 2001 From: Yao Jiayuan Date: Sun, 14 Mar 2021 03:53:49 +0800 Subject: [PATCH 3/4] Apply suggestions from code review Co-authored-by: Meghan Jones --- examples/gallery/maps/land_and_water.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/gallery/maps/land_and_water.py b/examples/gallery/maps/land_and_water.py index 29bd5762352..908ef04895d 100644 --- a/examples/gallery/maps/land_and_water.py +++ b/examples/gallery/maps/land_and_water.py @@ -4,9 +4,9 @@ The ``land`` and ``water`` parameters of :meth:`pygmt.Figure.coast` specify a color to fill in the land and water masses, respectively. There are many -:gmt-docs:`color codes in GMT `, e.g., standard GMT color -names (like ``skyblue``), R/G/B (like ``0/0/255``), a hex value (like ``#333333``), -graylevel (like ``50``). +:gmt-docs:`color codes in GMT `, including standard GMT color +names (like ``skyblue``), R/G/B levels (like ``0/0/255``), a hex value (like +``#333333``), and a graylevel (like ``50``). """ import pygmt From 20d851a81172b750f9699171b283586398e183dd Mon Sep 17 00:00:00 2001 From: Yao Jiayuan Date: Sun, 14 Mar 2021 04:02:58 +0800 Subject: [PATCH 4/4] Apply suggestions from code review Co-authored-by: Dongdong Tian --- examples/gallery/maps/land_and_water.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/gallery/maps/land_and_water.py b/examples/gallery/maps/land_and_water.py index 908ef04895d..207ae1d5f2d 100644 --- a/examples/gallery/maps/land_and_water.py +++ b/examples/gallery/maps/land_and_water.py @@ -2,8 +2,8 @@ Color land and water -------------------- -The ``land`` and ``water`` parameters of :meth:`pygmt.Figure.coast` specify a color to -fill in the land and water masses, respectively. There are many +The ``land`` and ``water`` parameters of :meth:`pygmt.Figure.coast` specify +a color to fill in the land and water masses, respectively. There are many :gmt-docs:`color codes in GMT `, including standard GMT color names (like ``skyblue``), R/G/B levels (like ``0/0/255``), a hex value (like ``#333333``), and a graylevel (like ``50``).