Skip to content

Commit

Permalink
Fix legend typos (#371)
Browse files Browse the repository at this point in the history
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 59dbcbe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/gallery/plot/legend.py
Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions pygmt/base_plotting.py
Expand Up @@ -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`
Expand Down

0 comments on commit 59dbcbe

Please sign in to comment.