Skip to content

Commit 953b0e9

Browse files
Mention GMT docs regarding more complicated legends in gallery example "Legends" (#2606)
1 parent c1923ac commit 953b0e9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

examples/gallery/embellishments/legend.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44
55
The :meth:`pygmt.Figure.legend` method can automatically create a legend for
66
symbols plotted using :meth:`pygmt.Figure.plot`. Legend entries are only
7-
created when the ``label`` parameter is used.
7+
created when the ``label`` parameter is used. For more complicated legends,
8+
including legends with multiple columns, users have to write an ASCII file
9+
with instructions for the layout of the legend items and pass it
10+
to the ``spec`` parameter of :meth:`pygmt.Figure.legend`. For details on
11+
how to set up such a file, please see the GMT documentation at
12+
https://docs.generic-mapping-tools.org/latest/legend.html#legend-codes.
813
"""
914
import pygmt
1015

0 commit comments

Comments
 (0)