Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 899e390

Browse files
timhoffmMeeseeksDev[bot]
authored andcommitted
Backport PR #15809: Exclude artists from legend using label attributte
1 parent 6348c18 commit 899e390

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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)