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.
2 parents 6a4ae80 + b986f60 commit 5ffafd0Copy full SHA for 5ffafd0
lib/matplotlib/legend.py
@@ -981,8 +981,7 @@ def _auto_legend_data(self):
981
elif isinstance(artist, Collection):
982
transform, transOffset, hoffsets, _ = artist._prepare_points()
983
if len(hoffsets):
984
- for offset in transOffset.transform(hoffsets):
985
- offsets.append(offset)
+ offsets.extend(transOffset.transform(hoffsets))
986
987
return bboxes, lines, offsets
988
0 commit comments