We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26c7c13 commit 3c13004Copy full SHA for 3c13004
pandas/plotting/_matplotlib/core.py
@@ -1187,7 +1187,8 @@ def _make_plot(self):
1187
is_errorbar=is_errorbar,
1188
**kwds,
1189
)
1190
- self._add_legend_handle(newlines[0], label, index=i)
+ if label is not None:
1191
+ self._add_legend_handle(newlines[0], label, index=i)
1192
1193
if self._is_ts_plot():
1194
@@ -1518,7 +1519,8 @@ def _make_plot(self):
1518
1519
log=self.log,
1520
1521
- self._add_legend_handle(rect, label, index=i)
1522
1523
+ self._add_legend_handle(rect, label, index=i)
1524
1525
def _post_plot_logic(self, ax: Axes, data):
1526
if self.use_index:
0 commit comments