Skip to content

Commit 5a5d907

Browse files
committed
FIX: fix second error line drawing codepath
Now that `plot` knows how to dig into pandas Series to extract a label, make sure all internal calls to `plot` in `errorbar` pass `label='_nolegend_'`. Closes #5393
1 parent 1e4823b commit 5a5d907

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/axes/_axes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3008,7 +3008,7 @@ def xywhere(xs, ys, mask):
30083008
caplines.extend(self.plot(xup, yup, 'k_', **plot_kw))
30093009

30103010
if not barsabove and plot_line:
3011-
l0, = self.plot(x, y, fmt, **kwargs)
3011+
l0, = self.plot(x, y, fmt, label='_nolegend_', **kwargs)
30123012

30133013
if ecolor is None:
30143014
if l0 is None and 'color' in self._get_lines._prop_keys:

0 commit comments

Comments
 (0)