Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions pygmt/base_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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)

Expand Down
4 changes: 2 additions & 2 deletions pygmt/tests/test_legend.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down