8000 legend ignores artists with empty and _ labels · matplotlib/matplotlib@c5a5ff6 · GitHub
[go: up one dir, main page]

Skip to content

Commit c5a5ff6

Browse files
authored
legend ignores artists with empty and _ labels
1 parent 0f88d8c commit c5a5ff6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tutorials/intermediate/legend_guide.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@
4444
a list of handles/artists which exist on the Axes which can be used to
4545
generate entries for the resulting legend - it is worth noting however that
4646
not all artists can be added to a legend, at which point a "proxy" will have
47-
to be created (see :ref:`proxy_legend_handles` for further details).
47+
to be created (see :ref:`proxy_legend_handles` for further details).
48+
49+
Those artists with an empty string as label or with a label starting with
50+
"_" will be ignored.
4851
4952
For full control of what is being added to the legend, it is common to pass
5053
the appropriate handles directly to :func:`legend`::

0 commit comments

Comments
 (0)
0