Skip to content
Prev Previous commit
Next Next commit
Fix legend creation
  • Loading branch information
mwaskom committed Oct 2, 2022
commit 0d7f264a79da7a8e65fe8420a98b59d5fc7a132b
2 changes: 1 addition & 1 deletion seaborn/_core/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1569,7 +1569,7 @@ def _update_legend_contents(
artist = mark._legend_artist(variables, val, scales)
if artist is not None:
artists.append(artist)
if contents:
if artists:
contents.append((key, artists, labels))

self._legend_contents.extend(contents)
Expand Down