Skip to content
Permalink
Browse files

Fix legend typos (#371)

Update legend docstring and fix small formatting issue in legend gallery example.
  • Loading branch information...
liamtoney authored and weiji14 committed Nov 6, 2019
1 parent 55af9b6 commit 59dbcbe4a01aab8c726fe60fd407f3cdffc5bfb3
Showing with 5 additions and 5 deletions.
  1. +1 −1 examples/gallery/plot/legend.py
  2. +4 −4 pygmt/base_plotting.py
@@ -4,7 +4,7 @@
The :meth:`pygmt.Figure.legend` method can automatically create a legend for
symbols plotted using :meth:`pygmt.Figure.plot`. Legend entries are only
created when the `label` argument is used.
created when the ``label`` argument is used.
"""
import pygmt

@@ -626,10 +626,10 @@ def legend(self, spec=None, **kwargs):
Plot legends on maps.
Makes legends that can be overlaid on maps. Reads specific legend-related
information from either a) an input file or b) a list containing a list
of figure handles and a list of corresponding labels. Unless otherwise
noted, annotations will be made using the primary annotation font and
size in effect (i.e., FONT_ANNOT_PRIMARY).
information from an input file, or automatically creates legend entries from
plotted symbols that have labels. Unless otherwise noted, annotations will be
made using the primary annotation font and size in effect
(i.e., FONT_ANNOT_PRIMARY).
Full option list at :gmt-docs:`legend.html`

0 comments on commit 59dbcbe

Please sign in to comment.
You can’t perform that action at this time.