From d5e3745704df09d4c4e80f248ee7a273921fc21a Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Thu, 22 Sep 2022 15:00:23 +0800 Subject: [PATCH] Figure.histogram and Figure.ternary: Fix incorrect docstrings 'color' to 'fill' (#2124) --- pygmt/helpers/decorators.py | 4 ++++ pygmt/src/histogram.py | 2 +- pygmt/src/ternary.py | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pygmt/helpers/decorators.py b/pygmt/helpers/decorators.py index 5e53714e25e..dee33ba29f9 100644 --- a/pygmt/helpers/decorators.py +++ b/pygmt/helpers/decorators.py @@ -47,6 +47,10 @@ color : str or 1d array Select color or pattern for filling of symbols or polygons. Default is no fill.""", + "fill": """\ + fill : str + Select color or pattern for filling of symbols or polygons. Default + is no fill.""", "spacing": r""" spacing : str *x_inc*\ [**+e**\|\ **n**][/\ *y_inc*\ [**+e**\|\ **n**]]. diff --git a/pygmt/src/histogram.py b/pygmt/src/histogram.py index ed332dc1004..51968acc2ad 100644 --- a/pygmt/src/histogram.py +++ b/pygmt/src/histogram.py @@ -59,7 +59,7 @@ def histogram(self, data, **kwargs): {region} {frame} {cmap} - {color} + {fill} {pen} {panel} annotate : bool or str diff --git a/pygmt/src/ternary.py b/pygmt/src/ternary.py index 1cb8f2fe426..cf538d8a7b7 100644 --- a/pygmt/src/ternary.py +++ b/pygmt/src/ternary.py @@ -53,7 +53,7 @@ def ternary(self, data, **kwargs): Give the min and max limits for each of the three axes **a**, **b**, and **c**. {cmap} - {color} + {fill} style : str *symbol*\[\ *size*]. Plot individual symbols in a ternary diagram.