We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b54498 commit 0025ef9Copy full SHA for 0025ef9
labellines/core.py
@@ -130,7 +130,7 @@ def labelLines(
130
handles, labels_of_handles = ax.get_legend_handles_labels()
131
132
all_lines, all_labels = [], []
133
- for h in handles:
+ for h, label in zip(handles, labels_of_handles):
134
if isinstance(h, ErrorbarContainer):
135
line = h.lines[0]
136
else:
@@ -140,7 +140,7 @@ def labelLines(
140
if (lines is not None) and (line not in lines):
141
continue
142
all_lines.append(line)
143
- all_labels.append(line.get_label())
+ all_labels.append(label)
144
145
# Check that the lines passed to the function have all a label
146
if lines is not None:
0 commit comments