From 5bfbd76bd1da07c00e80606401fa0b6072469505 Mon Sep 17 00:00:00 2001 From: Wei Ji Date: Fri, 1 Nov 2019 08:41:16 +1300 Subject: [PATCH] Quickfix plot docstring to have label (l) The `l` argument docstring should be under plot, not grdcontour. --- pygmt/base_plotting.py | 6 ++---- pygmt/tests/test_legend.py | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/pygmt/base_plotting.py b/pygmt/base_plotting.py index e127cc5cc98..09082fe271e 100644 --- a/pygmt/base_plotting.py +++ b/pygmt/base_plotting.py @@ -181,8 +181,6 @@ def grdcontour(self, grid, **kwargs): Do not draw contours with less than `cut` number of points. S : string or int Resample smoothing factor. - l : str - Add a legend entry for the symbol or line being plotted. {J} {R} {B} @@ -311,8 +309,8 @@ def plot(self, x=None, y=None, data=None, sizes=None, direction=None, **kwargs): quoted lines). {W} {U} - - + l : str + Add a legend entry for the symbol or line being plotted. """ kwargs = self._preprocess(**kwargs) diff --git a/pygmt/tests/test_legend.py b/pygmt/tests/test_legend.py index b651ee59c93..b966b691e32 100644 --- a/pygmt/tests/test_legend.py +++ b/pygmt/tests/test_legend.py @@ -45,8 +45,8 @@ def test_legend_entries(): pen="faint", l="Apples", ) - fig.plot(data="@Table_5_11.txt", pen="1.5p,gray", l='"My lines"') - fig.plot(data="@Table_5_11.txt", style="t0.15i", color="orange", l="Oranges") + fig.plot(data="@Table_5_11.txt", pen="1.5p,gray", label='"My lines"') + fig.plot(data="@Table_5_11.txt", style="t0.15i", color="orange", label="Oranges") fig.legend(position="JTR+jTR")