8000 Axes._get_legend_handles ignores artists with a label of '_nolegend_' · matplotlib/matplotlib@71dad75 · GitHub
[go: up one dir, main page]

Skip to content

Commit 71dad75

Browse files
committed
Axes._get_legend_handles ignores artists with a label of '_nolegend_'
1 parent 8d5110d commit 71dad75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4211,7 +4211,7 @@ def _get_legend_handles(self):
42114211

42124212
handles = []
42134213
for h in handles_original:
4214-
if h.get_label().startswith('_'):
4214+
if h.get_label() == "_nolegend_": #.startswith('_'):
42154215
continue
42164216

42174217
# check subclass

0 commit comments

Comments
 (0)
0