8000 Merge pull request #15809 from xuanxu/no-legend-labels · matplotlib/matplotlib@8221bf4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8221bf4

Browse files
authored
Merge pull request #15809 from xuanxu/no-legend-labels
Exclude artists from legend using label attributte
2 parents 0f88d8c + aa51e2d commit 8221bf4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tutorials/intermediate/legend_guide.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@
4646
not all artists can be added to a legend, at which point a "proxy" will have
4747
to be created (see :ref:`proxy_legend_handles` for further details).
4848
49+
Those artists with an empty string as label or with a label starting with
50+
"_" will be ignored.
51+
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`::
5154

0 commit comments

Comments
 (0)
0