|
4 | 4 |
|
5 | 5 | .. important::
|
6 | 6 |
|
7 |
| - It is unlikely that you would ever create a Legend instance manually. |
8 |
| - Most users would normally create a legend via the |
| 7 | + It is unlikely that you would ever create a Legend instance |
| 8 | + manually. Most users would normally create a legend via the |
9 | 9 | :meth:`~matplotlib.axes.Axes.legend` function. For more details on legends
|
10 |
| - there is also a :ref:`legend guide |
11 |
| - </tutorials/intermediate/legend_guide>`. |
12 |
| -
|
13 |
| -The Legend class can be considered as a container of legend handles |
14 |
| -and legend texts. Creation of corresponding legend handles from the |
15 |
| -plot elements in the axes or figures (e.g., lines, patches, etc.) are |
16 |
| -specified by the handler map, which defines the mapping between the |
17 |
| -plot elements and the legend handlers to be used (the default legend |
18 |
| -handlers are defined in the :mod:`~matplotlib.legend_handler` module). |
19 |
| -Note that not all kinds of artist are supported by the legend yet by default |
20 |
| -but it is possible to extend the legend handler's capabilities to support |
21 |
| -arbitrary objects. See the :ref:`legend guide |
22 |
| -</tutorials/intermediate/legend_guide>` for more information. |
23 |
| -
|
| 10 | + there is also a :doc:`legend guide </tutorials/intermediate/legend_guide>`. |
| 11 | +
|
| 12 | +The Legend class can be considered as a container of legend handles and |
| 13 | +legend texts. Creation of corresponding legend handles from the plot elements |
| 14 | +in the axes or figures (e.g., lines, patches, etc.) are specified by the |
| 15 | +handler map, which defines the mapping between the plot elements and the |
| 16 | +legend handlers to be used (the default legend handlers are defined in the |
| 17 | +:mod:`~matplotlib.legend_handler` module). Note that not all kinds of |
| 18 | +artist are supported by the legend yet by default but it is possible to |
| 19 | +extend the legend handler's capabilities to support arbitrary objects. See |
| 20 | +the :doc:`legend guide </tutorials/intermediate/legend_guide>` for more |
| 21 | +information. |
24 | 22 | """
|
25 | 23 |
|
26 | 24 | import logging
|
|
0 commit comments